Diff between db24bf09d66325a17f6449ce811cee9f1ef6869f and 8fa87b63f82b91d4e6ab577f6045d0b5846b92bd

Changed Files

File Additions Deletions Status
src/device.c +7 -0 modified

Full Patch

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);