From a16f96e1674324f5ba8a5d1688efeb548f3e4e5b Mon Sep 17 00:00:00 2001 From: ERAMOTO Masaya Date: Fri, 16 Feb 2018 14:51:03 +0900 Subject: [PATCH] client: Fix null output for ad service uuid If getting the advertise service information without setting, outputs null as UUID as below: [bluetooth]# service UUID: ((null)) Change-Id: I47ce8f6c380b90bf17acfa0db112bfc93b234e14 Signed-off-by: Amit Purwar --- client/advertising.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/advertising.c b/client/advertising.c index c9de177..1a6ffee 100644 --- a/client/advertising.c +++ b/client/advertising.c @@ -131,7 +131,7 @@ static void print_uuid(const char *uuid) bt_shell_printf("UUID: %s(%s)\n", str, uuid); } else - bt_shell_printf("UUID: (%s)\n", uuid); + bt_shell_printf("UUID: (%s)\n", uuid ? uuid : ""); } static void print_ad_uuids(void) -- 2.7.4