From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> 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 aaa9f43..6a23adc 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.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html