From dc2ab4d74f8be800f7ab2be9b2f1b82434c20220 Mon Sep 17 00:00:00 2001 From: Krzysztof Chruscinski Date: Thu, 8 Nov 2018 12:05:34 +0100 Subject: [PATCH] bluetooth: Simplifying log macros Function name prefix is now configurable (by default only debug messages are prefixed) and log macros can be simplified. Signed-off-by: Krzysztof Chruscinski --- subsys/bluetooth/common/log.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/subsys/bluetooth/common/log.h b/subsys/bluetooth/common/log.h index 84a9fa8fcb4..e07a1f1c8ac 100644 --- a/subsys/bluetooth/common/log.h +++ b/subsys/bluetooth/common/log.h @@ -36,16 +36,9 @@ extern "C" { LOG_MODULE_REGISTER(LOG_MODULE_NAME); -#if IS_ENABLED(CONFIG_LOG_FUNCTION_NAME) #define BT_DBG(fmt, ...) LOG_DBG(fmt, ##__VA_ARGS__) #define BT_ERR(fmt, ...) LOG_ERR(fmt, ##__VA_ARGS__) #define BT_WARN(fmt, ...) LOG_WRN(fmt, ##__VA_ARGS__) -#else -#define BT_DBG(fmt, ...) LOG_DBG("%s: " fmt, __func__, ##__VA_ARGS__) -#define BT_ERR(fmt, ...) LOG_ERR("%s: " fmt, __func__, ##__VA_ARGS__) -#define BT_WARN(fmt, ...) LOG_WRN("%s: " fmt, __func__, ##__VA_ARGS__) -#endif - #define BT_INFO(fmt, ...) LOG_INF(fmt, ##__VA_ARGS__) #define BT_ASSERT(cond) if (!(cond)) { \