diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hcitool.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/hcitool.c b/tools/hcitool.c index 7f0cc23a..ceddeda5 100644 --- a/tools/hcitool.c +++ b/tools/hcitool.c @@ -575,7 +575,9 @@ static void cmd_scan(int dev_id, int argc, char **argv) nc = 0; } } - printf("Device name:\t%s%s\n", name, nc ? " [cached]" : ""); + + if (strlen(name) > 0) + printf("Device name:\t%s%s\n", name, nc ? " [cached]" : ""); if (extcls) { memcpy(cls, (info+i)->dev_class, 3); |