From 68daef224d723092bd3677787a4c484de8a6f27b Mon Sep 17 00:00:00 2001 From: Marcin Kraglak Date: Thu, 23 Oct 2014 12:15:32 +0200 Subject: [PATCH] tools/btgatt-client: Print type of service --- tools/btgatt-client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c index d900e08fd..d21bc3422 100644 --- a/tools/btgatt-client.c +++ b/tools/btgatt-client.c @@ -183,8 +183,9 @@ static void print_service(const bt_gatt_service_t *service) } printf(COLOR_RED "service" COLOR_OFF " - start: 0x%04x, " - "end: 0x%04x, uuid: ", - service->start_handle, service->end_handle); + "end: 0x%04x, type: %s, uuid: ", + service->start_handle, service->end_handle, + service->primary ? "primary" : "secondary"); print_uuid(service->uuid); while (bt_gatt_characteristic_iter_next(&iter, &chrc)) { -- 2.47.3