From 193eddd85e81a3b9bea67705a84e372bf0f4c993 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 28 Jul 2014 13:24:00 +0300 Subject: [PATCH] tools/btmgmt: Fix grammar for zero items --- tools/btmgmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/btmgmt.c b/tools/btmgmt.c index 3b47f0a7d..859e7df0c 100644 --- a/tools/btmgmt.c +++ b/tools/btmgmt.c @@ -915,7 +915,7 @@ static void unconf_index_rsp(uint8_t status, uint16_t len, const void *param, } printf("Unconfigured index list with %u item%s\n", - count, count > 1 ? "s" : ""); + count, count != 1 ? "s" : ""); for (i = 0; i < count; i++) { uint16_t index; @@ -1061,7 +1061,7 @@ static void index_rsp(uint8_t status, uint16_t len, const void *param, if (monitor) printf("Index list with %u item%s\n", - count, count > 1 ? "s" : ""); + count, count != 1 ? "s" : ""); if (count == 0) goto done; -- 2.47.3