]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: fix typo in summary output
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 22 Jun 2016 07:25:56 +0000 (09:25 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Jun 2016 08:54:09 +0000 (10:54 +0200)
The new drawer support did have a type in the summary output:
it reported Drawers(s) instead of Drawer(s). Fix this.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
sys-utils/lscpu.c
tests/expected/lscpu/lscpu-s390-lpar-drawer

index 41316ccafeec9203154cc16495e4a6452cde9ab0..c07b9d09683af44d546c2ae86781af658e8812bc 100644 (file)
@@ -1696,7 +1696,7 @@ print_summary(struct lscpu_desc *desc, struct lscpu_modifier *mod)
                        if (desc->ndrawers) {
                                print_n(_("Book(s) per drawer:"),
                                        books_per_drawer ?: desc->nbooks / desc->ndrawers);
-                               print_n(_("Drawers(s):"), drawers ?: desc->ndrawers);
+                               print_n(_("Drawer(s):"), drawers ?: desc->ndrawers);
                        } else {
                                print_n(_("Book(s):"), books_per_drawer ?: desc->nbooks);
                        }
index 1624e73dd3e03771e4901ccac24acfd595303b89..accbff8210655c9ab0b13dcea9c0f0ded7f2a412 100644 (file)
@@ -5,7 +5,7 @@ Thread(s) per core:    1
 Core(s) per socket:    8
 Socket(s) per book:    3
 Book(s) per drawer:    2
-Drawers(s):            4
+Drawer(s):             4
 NUMA node(s):          1
 Vendor ID:             IBM/S390
 Model name:            0