Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2020 09:13:22 +0000 (UTC)
From:      Takanori Watanabe <takawata@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r360369 - head/usr.sbin/bluetooth/hccontrol
Message-ID:  <202004270913.03R9DMnA027729@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: takawata
Date: Mon Apr 27 09:13:22 2020
New Revision: 360369
URL: https://svnweb.freebsd.org/changeset/base/360369

Log:
  Resolve vendor id to string.

Modified:
  head/usr.sbin/bluetooth/hccontrol/node.c

Modified: head/usr.sbin/bluetooth/hccontrol/node.c
==============================================================================
--- head/usr.sbin/bluetooth/hccontrol/node.c	Mon Apr 27 05:35:26 2020	(r360368)
+++ head/usr.sbin/bluetooth/hccontrol/node.c	Mon Apr 27 09:13:22 2020	(r360369)
@@ -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]);
 			}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004270913.03R9DMnA027729>