zephyr/subsys/bluetooth/controller
Johan Hedberg 645f867444 Bluetooth: Take advantage of IS_ENABLED macro for BT_DBG
The new IS_ENABLED macro allows exposing conditionally enabled code
always to the compiler, even though it may not ultimately end up being
built. This is in particular useful for letting the compiler catch any
logging format string errors. Introduce a new BT_DBG_ENABLED macro
that c-files need to define before including <bluetooth/log.h> in
order to choose whether BT_DBG() logs are enabled or not.

When no Bluetooth logs are enabled the patch also modifies the log
macros to have the format strings checked with the help of the
__printf_like annotation and empty static inline functions.

Change-Id: Ie6bc8e10727b5b306f3ed0f94089a07a22583d9b
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2017-01-18 08:28:06 +02:00
..
hal Bluetooth: Controller: Rename hci_le_rand to bt_rand 2017-01-17 08:44:21 +02:00
hci Bluetooth: Take advantage of IS_ENABLED macro for BT_DBG 2017-01-18 08:28:06 +02:00
ll Bluetooth: Take advantage of IS_ENABLED macro for BT_DBG 2017-01-18 08:28:06 +02:00
ticker Bluetooth: Controller: replace work with mayfly 2017-01-05 08:49:16 +02:00
util Bluetooth: Controller: replace work with mayfly 2017-01-05 08:49:16 +02:00
Kconfig bluetooth: controller: Split events into normal and priority 2017-01-05 08:49:17 +02:00
Makefile Bluetooth: Controller: replace work with mayfly 2017-01-05 08:49:16 +02:00