Skip to content
Commit aa960c9d authored by Carles Cufi's avatar Carles Cufi Committed by Johan Hedberg
Browse files

Bluetooth: log: Rework BT_ASSERT



Rework the BT_ASSERT infrastructure with the following changes:

- Transition from LOG() macros to printk()
- Allow the BT_ASSERT() macro to map directly to stancard __ASSERT()
- Allow printing of the assert reason to be disabled
- Switch from k_oops() to k_panic() configurable

There are 2 reasons for using printk() instead of LOG():

- BT_ERR uses deferred logging by default, which is problematic with
ASSERTs
- The __ASSERT() macro in Zephyr uses printk()

Signed-off-by: default avatarCarles Cufi <carles.cufi@nordicsemi.no>
parent 6d08a308
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment