diff options
author | Max Krasnyansky <maxk@qualcomm.com> | 2002-04-22 20:16:27 +0000 |
---|---|---|
committer | Max Krasnyansky <maxk@qualcomm.com> | 2002-04-22 20:16:27 +0000 |
commit | 98f6f92be002a098fb4f3b773939ab7c94834a0d (patch) | |
tree | ecce8d940a54100ced865e8a2f6d87e3c70aac7e | |
parent | 996b96baf78a1e77e94c08f391e00a8bc7822955 (diff) |
Display feature bytes in hex
-rw-r--r-- | tools/hciconfig.c | 4 | ||||
-rw-r--r-- | tools/hcitool.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 96d4c7b4..21f7bc1c 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -98,7 +98,9 @@ void print_dev_features(struct hci_dev_info *di, int format) di->features[0], di->features[1], di->features[2], di->features[3] ); } else { - printf("\tFeatures:\n%s\n", + printf("\tFeatures: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x\n%s\n", + di->features[0], di->features[1], + di->features[2], di->features[3], lmp_featurestostr(di->features, "\t\t", 3)); } } diff --git a/tools/hcitool.c b/tools/hcitool.c index 35509f22..06c426ca 100644 --- a/tools/hcitool.c +++ b/tools/hcitool.c @@ -468,7 +468,8 @@ static void cmd_info(int dev_id, int argc, char **argv) } if (hci_read_remote_features(dd, handle, features, 20000) == 0) { - printf("\tFeatures:\n%s\n", + printf("\tFeatures: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x\n%s\n", + features[0], features[1], features[2], features[3], lmp_featurestostr(features, "\t\t", 3)); } |