From 98f6f92be002a098fb4f3b773939ab7c94834a0d Mon Sep 17 00:00:00 2001 From: Max Krasnyansky Date: Mon, 22 Apr 2002 20:16:27 +0000 Subject: Display feature bytes in hex --- tools/hciconfig.c | 4 +++- 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)); } -- cgit