diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-01-08 10:54:24 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-01-08 11:03:35 -0800 |
commit | 3450230f9f45d97abddec04f31b6e000411b55a4 (patch) | |
tree | 67de6ae7d9bcacfcf6625912d3372f8390b02398 /tools/btgatt-client.c | |
parent | 566363b620c8a4896affe1c46fe70d2854834b33 (diff) | |
download | bluez-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.c | 3 |
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); } |