Return-Path: From: Marcin Kraglak To: linux-bluetooth@vger.kernel.org Subject: [PATCHv3 09/13] tools/btgatt-client: Print type of service Date: Wed, 8 Oct 2014 10:31:46 +0200 Message-Id: <1412757110-3509-10-git-send-email-marcin.kraglak@tieto.com> In-Reply-To: <1412757110-3509-1-git-send-email-marcin.kraglak@tieto.com> References: <1412757110-3509-1-git-send-email-marcin.kraglak@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- tools/btgatt-client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c index d900e08..5c692ff 100644 --- a/tools/btgatt-client.c +++ b/tools/btgatt-client.c @@ -182,8 +182,9 @@ static void print_service(const bt_gatt_service_t *service) return; } - printf(COLOR_RED "service" COLOR_OFF " - start: 0x%04x, " + printf(COLOR_RED "service %s" COLOR_OFF " - start: 0x%04x, " "end: 0x%04x, uuid: ", + service->primary ? "primary" : "second.", service->start_handle, service->end_handle); print_uuid(service->uuid); -- 1.9.3