From 5542ce34cfb07a75eebd5659fb66d1fe2394faa6 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 16 Jun 2007 11:31:41 +0000 Subject: Fix decoding of extended pages number --- tools/hcitool.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tools') 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) { -- cgit