diff options
author | Marcin Kraglak <marcin.kraglak@tieto.com> | 2014-10-23 12:15:32 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-10-23 14:45:52 +0200 |
commit | 68daef224d723092bd3677787a4c484de8a6f27b (patch) | |
tree | e638f0c1a5458be379974563b01c3b14d0ed570d /tools/btgatt-client.c | |
parent | 113ad305379e248f1c15bc66d77dfa95f82a8eaf (diff) | |
download | bluez-68daef224d723092bd3677787a4c484de8a6f27b.tar.gz |
tools/btgatt-client: Print type of service
Diffstat (limited to 'tools/btgatt-client.c')
-rw-r--r-- | tools/btgatt-client.c | 5 |
1 files 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)) { |