summaryrefslogtreecommitdiffstats
path: root/tools/hciconfig.c
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-07-12 00:19:06 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-07-12 00:19:06 +0000
commite60ae4dbe6877e5aec39e73db73acac63975fc85 (patch)
tree875988e6172b94536bdc1be97cd6fc07d854ed6c /tools/hciconfig.c
parenteb23734ec801339282844c2548ec415303e36455 (diff)
Minor fixes for dev class handling.
Diffstat (limited to 'tools/hciconfig.c')
-rw-r--r--tools/hciconfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c
index baa1d97b..6ea30a5d 100644
--- a/tools/hciconfig.c
+++ b/tools/hciconfig.c
@@ -545,8 +545,8 @@ void cmd_class(int ctl, int hdev, char *opt)
printf("\tService Classes: ");
if (rp.dev_class[2]) {
int first = 1;
- for(s=0; s < 8; s++)
- if (rp.dev_class[2] & (2 << s)) {
+ for(s=0; s < sizeof(services); s++)
+ if (rp.dev_class[2] & (1 << s)) {
if (!first)
printf(", ");
printf(services[s]);
@@ -558,7 +558,7 @@ void cmd_class(int ctl, int hdev, char *opt)
if (rp.dev_class[1] > sizeof(major_devices))
printf("Invalid Device Class!\n");
else
- printf("%s/%s\n", major_devices[rp.dev_class[1]],
+ printf("%s, %s\n", major_devices[rp.dev_class[1]],
get_minor_device_name(rp.dev_class[1],
rp.dev_class[0] / 4));
}