diff options
author | Max Krasnyansky <maxk@qualcomm.com> | 2002-03-21 23:23:36 +0000 |
---|---|---|
committer | Max Krasnyansky <maxk@qualcomm.com> | 2002-03-21 23:23:36 +0000 |
commit | 9738e36a881497bc94d60b273f50dfa27b95030c (patch) | |
tree | a8e150ce6bccf3cfb078a6ee2445ada1b9307557 | |
parent | 18527eedb9243335fb47c4297e97afcc8722c1c6 (diff) |
Support for company id and more readable version numbers.
-rw-r--r-- | tools/hciconfig.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 779cef0f..3cae9792 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -370,10 +370,11 @@ void cmd_version(int ctl, int hdev, char *opt) } print_dev_hdr(&di); - printf( "\tHCI Ver: 0x%x HCI Rev: 0x%x LMP Ver: 0x%x LMP Subver: 0x%x\n" - "\tManufacturer: %d\n", - ver.hci_ver, ver.hci_rev, ver.lmp_ver, ver.lmp_subver, - ver.manufacturer); + printf( "\tHCI Ver: %s (0x%x) HCI Rev: 0x%x LMP Ver: %s (0x%x) LMP Subver: 0x%x\n" + "\tManufacturer: %s (%d)\n", + hci_vertostr(ver.hci_ver), ver.hci_ver, ver.hci_rev, + lmp_vertostr(ver.lmp_ver), ver.lmp_ver, ver.lmp_subver, + bt_compidtostr(ver.manufacturer), ver.manufacturer); } void cmd_inq_parms(int ctl, int hdev, char *opt) |