diff options
author | Max Krasnyansky <maxk@qualcomm.com> | 2002-05-08 17:00:05 +0000 |
---|---|---|
committer | Max Krasnyansky <maxk@qualcomm.com> | 2002-05-08 17:00:05 +0000 |
commit | 6446efe312e0410efc4c45dc68f5d980755f0666 (patch) | |
tree | 15171f90a2cc364c10726c305c52a3a6c11c090c /tools/hciconfig.c | |
parent | 79095069d348e61dc26c6fa6e35428c5d90887ff (diff) |
Use hci_test_bit instead of (1<<bit)
Diffstat (limited to 'tools/hciconfig.c')
-rw-r--r-- | tools/hciconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 4b4844ff..1efdecca 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -525,7 +525,7 @@ void print_dev_info(int ctl, struct hci_dev_info *di) print_link_policy(di); print_link_mode(di); - if (di->flags & (1 << HCI_UP)) { + if (hci_test_bit(HCI_UP, &di->flags)) { cmd_name(ctl, di->dev_id, NULL); cmd_class(ctl, di->dev_id, NULL); cmd_version(ctl, di->dev_id, NULL); |