Skip to content
Commit f32223aa authored by Guðni Már Gilbert's avatar Guðni Már Gilbert Committed by Fabio Baltieri
Browse files

debug: ASSERT_VERBOSE depends on PRINTK



When both PRINTK and ASSERT are disabled, the firmware image will still
contain a symbol for assert_print function which increases the memory
footprint by 14 bytes. In this case the function doesn't do anything and
so these 14 bytes are not useful.

This change also reduces the memory footprint elsewhere such as in the
bluetooth subsystem which implements BT_ASSERT_VERBOSE. Now it will be
nop. On nRF52832 this is on the order of 300 - 400 bytes when configured
for peripheral only (just as an example).

Signed-off-by: default avatarGuðni Már Gilbert <gudni.m.g@gmail.com>
parent f6821fbc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment