From: Benno Schulenberg Date: Tue, 22 Jan 2013 08:49:59 +0000 (+0100) Subject: mkswap: properly pluralize the bad-pages message X-Git-Tag: v2.23-rc1~274 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff21848c64b5ffe9dae15d23045b7433ecfc52db;p=thirdparty%2Futil-linux.git mkswap: properly pluralize the bad-pages message Signed-off-by: Benno Schulenberg --- diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c index 4f59a63c72..ab48129424 100644 --- a/disk-utils/mkswap.c +++ b/disk-utils/mkswap.c @@ -329,10 +329,7 @@ check_blocks(void) page_bad(current_page); current_page++; } - if (badpages == 1) - printf(_("one bad page\n")); - else if (badpages > 1) - printf(_("%lu bad pages\n"), badpages); + printf(P_("%lu bad page\n", "%lu bad pages\n", badpages), badpages); free(buffer); }