summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-07-03 13:01:52 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-07-03 13:01:52 +0000
commitcbbe4f3f909cde4356f1323e0bd157e2fe9320de (patch)
tree076033f46d328081d98b22ad3252b8cd22992f60 /tools
parent457544cfedb41c4ea5e70992498c8311a8737b28 (diff)
Don't show empty names
Diffstat (limited to 'tools')
-rw-r--r--tools/hcitool.c4
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);