-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Logs] print size and caps when malloc fails (IDFGH-9267) #10650
[Logs] print size and caps when malloc fails (IDFGH-9267) #10650
Conversation
f9c613d
to
42bc51e
Compare
42bc51e
to
526a73e
Compare
526a73e
to
910544c
Compare
@chipweinberger Thanks for the update. I will sync the PR if you don't plan on adding more changes. |
all good! no more to change. |
@chipweinberger, The only viable alternatives I can see here are:
|
I'll update the PR. A simple function will suffice for hex.
|
updated! |
7675b16
to
92b7149
Compare
92b7149
to
f11256d
Compare
should be all good now. tested it. |
@chipweinberger, I just merged this feature on our gitlab repository. It should be available in master on github in the next sync. |
appreciate your work on the PRs. thanks |
Before:
Memory allocation failed.
After:
Mem alloc fail. size 1600 caps 0x8
When memory allocation fails, we don't get many details. This adds a little bit more info.
I avoided using snprintf, due stack size concerns.