diff --git a/unit/test-gatt.c b/unit/test-gatt.c
index 8898762..4d5d7ea 100644
--- a/unit/test-gatt.c
+++ b/unit/test-gatt.c
return TRUE;
}
-static void gatt_debug(const char *str, void *user_data)
+static void print_debug(const char *str, void *user_data)
{
const char *prefix = user_data;
case ATT:
context->att = att;
+ if (g_test_verbose())
+ bt_att_set_debug(context->att, print_debug, "bt_att:",
+ NULL);
+
bt_gatt_exchange_mtu(context->att, mtu, NULL, NULL, NULL);
break;
case CLIENT:
g_assert(context->client);
if (g_test_verbose())
- bt_gatt_client_set_debug(context->client, gatt_debug,
- "gatt:", NULL);
+ bt_gatt_client_set_debug(context->client, print_debug,
+ "bt_gatt_client:", NULL);
bt_gatt_client_set_ready_handler(context->client,
client_ready_cb, context, NULL);