From 3de5807a53b4006b56e333e968fa0ed1c33d4b8e 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)) --- client/advertising.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/advertising.c b/client/advertising.c index b9b9a7371..80a48652c 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.47.3