Skip to content
Commit d0629e3c authored by Christopher Friedt's avatar Christopher Friedt Committed by Carles Cufí
Browse files

libc: malloc: log an error when malloc is called and arena size is 0



Previously, if the arena size was zero, malloc would always fail.
However, the log message was only visible if debug messages were
enabled. Logging an error will hopefully make it more obvious that
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE should be >= if the minimal
libc and malloc are both used.

Fixes #26720

Signed-off-by: default avatarChristopher Friedt <chrisfriedt@gmail.com>
parent 970e921c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment