summaryrefslogtreecommitdiff
path: root/tools/btgatt-client.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-01-08 10:54:24 -0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-01-08 11:03:35 -0800
commit3450230f9f45d97abddec04f31b6e000411b55a4 (patch)
tree67de6ae7d9bcacfcf6625912d3372f8390b02398 /tools/btgatt-client.c
parent566363b620c8a4896affe1c46fe70d2854834b33 (diff)
downloadbluez-3450230f9f45d97abddec04f31b6e000411b55a4.tar.gz
shared/att: Add debug level to bt_att_set_debug
This creates different levels of debugging which can be passed to bt_att_set_debug as depending on the application it may not need to print everything which can pollute the logs quite a bit.
Diffstat (limited to 'tools/btgatt-client.c')
-rw-r--r--tools/btgatt-client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index 523d6ec30..8c9365aa2 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -218,7 +218,8 @@ static struct client *client_create(int fd, uint16_t mtu)
NULL, NULL);
if (verbose) {
- bt_att_set_debug(cli->att, att_debug_cb, "att: ", NULL);
+ bt_att_set_debug(cli->att, BT_ATT_DEBUG_VERBOSE, att_debug_cb,
+ "att: ", NULL);
bt_gatt_client_set_debug(cli->gatt, gatt_debug_cb, "gatt: ",
NULL);
}