From 6ececd21a6b6f53ceb8d3215abd723c7413ba59f Mon Sep 17 00:00:00 2001 From: Takanori Watanabe Date: Mon, 27 Apr 2020 09:13:22 +0000 Subject: [PATCH] Resolve vendor id to string. --- usr.sbin/bluetooth/hccontrol/node.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); }