[PATCH BlueZ 2/4] Print Vendor/Product/Version in hexadecimal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

This is how their are more commonly known.
---
 test/list-devices |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/test/list-devices b/test/list-devices
index 9120714..cb564be 100755
--- a/test/list-devices
+++ b/test/list-devices
@@ -67,6 +67,12 @@ for i in adapter_list:
 				print "        %s = %s" % (key, list)
 			elif (key == "Class"):
 				print "        %s = 0x%06x" % (key, value)
+			elif (key == "Vendor"):
+				print "        %s = 0x%04x" % (key, value)
+			elif (key == "Product"):
+				print "        %s = 0x%04x" % (key, value)
+			elif (key == "Version"):
+				print "        %s = 0x%04x" % (key, value)
 			else:
 				print "        %s = %s" % (key, value)
 
-- 
1.7.6.2

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux