diff mbox series

[BlueZ,2/5] device: Don't use DBG in gatt_debug

Message ID 20220321205529.2469387-2-luiz.dentz@gmail.com (mailing list archive)
State Superseded
Headers show
Series [BlueZ,1/5] att: Log file and function names | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
tedd_an/checkpatch success Checkpatch PASS
tedd_an/gitlint success Gitlint PASS

Commit Message

Luiz Augusto von Dentz March 21, 2022, 8:55 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

gatt_debug callback is used to print debug strings from bt_att which
includes the file and function names so using DBG would add yet another
set of file and function prefixes which makes the logs confusing.
---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/device.c b/src/device.c
index 3992f9a0c..96d939a53 100644
--- a/src/device.c
+++ b/src/device.c
@@ -5545,7 +5545,7 @@  static void gatt_client_service_changed(uint16_t start_handle,
 
 static void gatt_debug(const char *str, void *user_data)
 {
-	DBG("%s", str);
+	btd_debug(0xffff, "%s", str);
 }
 
 static void gatt_client_init(struct btd_device *device)