]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mkswap: properly pluralize the bad-pages message
authorBenno Schulenberg <bensberg@justemail.net>
Tue, 22 Jan 2013 08:49:59 +0000 (09:49 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 30 Jan 2013 14:23:45 +0000 (15:23 +0100)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
disk-utils/mkswap.c

index 4f59a63c7256a6de2ccda8b945d10eef234a06ba..ab481294246d777dfca80dfcd81b7aaa6b1b20b9 100644 (file)
@@ -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);
 }