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.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html