zephyr/subsys/bluetooth/controller/ll
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
..
ctrl_internal.h Bluetooth: Controller: replace work with mayfly 2017-01-05 08:49:16 +02:00
ctrl.c Bluetooth: Take advantage of IS_ENABLED macro for BT_DBG 2017-01-18 08:28:06 +02:00
ctrl.h bluetooth: controller: Split events into normal and priority 2017-01-05 08:49:17 +02:00
ll.c Bluetooth: Controller: replace work with mayfly 2017-01-05 08:49:16 +02:00
ll.h Bluetooth: Move controller code to subsys/bluetooth 2016-11-04 22:05:05 +02:00
pdu.h Bluetooth: Controller: replace work with mayfly 2017-01-05 08:49:16 +02:00