diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-06-16 11:31:41 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-06-16 11:31:41 +0000 |
commit | 5542ce34cfb07a75eebd5659fb66d1fe2394faa6 (patch) | |
tree | 643237b0f15e1ab37c8f759c9863eb6999b53f74 | |
parent | 0e4098b0204d3611ff09b3101c9bd134c8716dcf (diff) |
Fix decoding of extended pages number
-rw-r--r-- | tools/hcitool.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/hcitool.c b/tools/hcitool.c index 75fbc8e2..49cc6fe6 100644 --- a/tools/hcitool.c +++ b/tools/hcitool.c @@ -905,9 +905,11 @@ static void cmd_info(int dev_id, int argc, char **argv) } if ((di.features[7] & LMP_EXT_FEAT) && (features[7] & LMP_EXT_FEAT)) { - if (hci_read_remote_ext_features(dd, handle, 0, &max_page, features, 20000) == 0) + if (hci_read_remote_ext_features(dd, handle, 0, + &max_page, features, 20000) == 0) if (max_page > 0) - printf("\tExtended features: %d pages\n", max_page); + printf("\tExtended features: %d page%s\n", + max_page, max_page > 1 ? "s" : ""); } if (cc) { |