From 6514cda4b28105457fe2b6483251ecbf5348dee0 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 11 Feb 2016 10:46:41 +0200 Subject: [PATCH] drivers/nble: Enable debug only if CONFIG_BLUETOOTH_DEBUG_GATT is defined This will prevent debug output to be printed if in case CONFIG_BLUETOOTH_DEBUG_GATT is not defined. Change-Id: I93be7ccbcf0a8eae5ecb54b174d6ed2d892673dd Signed-off-by: Luiz Augusto von Dentz --- drivers/nble/gatt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/nble/gatt.c b/drivers/nble/gatt.c index bdfb125a9d2..84393d0b0b7 100644 --- a/drivers/nble/gatt.c +++ b/drivers/nble/gatt.c @@ -24,6 +24,11 @@ #include "conn_internal.h" #include "gatt_internal.h" +#if !defined(CONFIG_BLUETOOTH_DEBUG_GATT) +#undef BT_DBG +#define BT_DBG(fmt, ...) +#endif + #define NBLE_BUF_SIZE 384 struct ble_gatt_service {