From 8fa87b63f82b91d4e6ab577f6045d0b5846b92bd Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 17 Mar 2015 17:17:57 +0200 Subject: [PATCH] core/device: Enable bt_gatt_client debug This enables bt_gatt_client debug and use BDG to print out. --- src/device.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/device.c b/src/device.c index aaa9f43cf..6a23adcbf 100644 --- a/src/device.c +++ b/src/device.c @@ -3989,6 +3989,11 @@ static void gatt_client_service_changed(uint16_t start_handle, DBG("start 0x%04x, end: 0x%04x", start_handle, end_handle); } +static void gatt_debug(const char *str, void *user_data) +{ + DBG("%s", str); +} + static void gatt_client_init(struct btd_device *device) { gatt_client_cleanup(device); @@ -4000,6 +4005,8 @@ static void gatt_client_init(struct btd_device *device) return; } + bt_gatt_client_set_debug(device->client, gatt_debug, NULL, NULL); + /* Notify attio so it can react to notifications */ g_slist_foreach(device->attios, attio_connected, device->attrib); -- 2.47.3