From cbbe4f3f909cde4356f1323e0bd157e2fe9320de Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 3 Jul 2005 13:01:52 +0000 Subject: Don't show empty names --- tools/hcitool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- cgit