From 18849a6c5ba65af9eabfc545bbfe132d18a9b94b Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 18 Mar 2015 14:25:49 +0200 Subject: [PATCH] core/device: Enable bt_gatt_server debug This enables bt_gatt_server debug and use BDG to print out. --- src/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/device.c b/src/device.c index 6a23adcbf..8ad62d3fd 100644 --- a/src/device.c +++ b/src/device.c @@ -4039,6 +4039,8 @@ static void gatt_server_init(struct btd_device *device, struct gatt_db *db) device->server = bt_gatt_server_new(db, device->att, device->att_mtu); if (!device->server) error("Failed to initialize bt_gatt_server"); + + bt_gatt_server_set_debug(device->server, gatt_debug, NULL, NULL); } static bool local_counter(uint32_t *sign_cnt, void *user_data) -- 2.47.3