aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bluetooth/hccontrol
diff options
context:
space:
mode:
authorTakanori Watanabe <takawata@FreeBSD.org>2020-04-27 09:13:22 +0000
committerTakanori Watanabe <takawata@FreeBSD.org>2020-04-27 09:13:22 +0000
commit6ececd21a6b6f53ceb8d3215abd723c7413ba59f (patch)
tree41e8b76b45b5e58908b6888a7ed8053dce15b007 /usr.sbin/bluetooth/hccontrol
parent84662d68e5ba32af80b45f846540d4495ed09658 (diff)
downloadsrc-6ececd21a6b6f53ceb8d3215abd723c7413ba59f.tar.gz
src-6ececd21a6b6f53ceb8d3215abd723c7413ba59f.zip
Resolve vendor id to string.
Notes
Notes: svn path=/head/; revision=360369
Diffstat (limited to 'usr.sbin/bluetooth/hccontrol')
-rw-r--r--usr.sbin/bluetooth/hccontrol/node.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bluetooth/hccontrol/node.c b/usr.sbin/bluetooth/hccontrol/node.c
index ac41cbe7656b..b4c2a4cfa78e 100644
--- a/usr.sbin/bluetooth/hccontrol/node.c
+++ b/usr.sbin/bluetooth/hccontrol/node.c
@@ -267,7 +267,8 @@ static int hci_dump_adv(uint8_t *data, int length)
case 0xff:
if (elemlen < 2)
break;
- printf("Vendor:%04x:", data[0]|data[1]<<8);
+ printf("Vendor:%s:",
+ hci_manufacturer2str(data[0]|data[1]<<8));
for (i = 2; i < MIN(length,elemlen); i++) {
printf("%02x ",data[i]);
}