diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2011-09-22 18:51:50 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2011-10-01 09:02:05 +0300 |
commit | 5600f99bd941f5d44eb3c690e15a0f125fbd23f4 (patch) | |
tree | 8653492498da0325c9d4b210f2a10865af92cf57 /test/list-devices | |
parent | d1d4f1b2a6509e71f137f1a700645b0b73fcdc3f (diff) |
Print Vendor/Product/Version in hexadecimal
This is how their are more commonly known.
Diffstat (limited to 'test/list-devices')
-rwxr-xr-x | test/list-devices | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/list-devices b/test/list-devices index 91207148..cb564be4 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) |