lscpu: fix typo in summary output

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>
This commit is contained in:
Heiko Carstens 2016-06-22 09:25:56 +02:00 committed by Karel Zak
parent 08fb47ad82
commit 156740ca37
2 changed files with 2 additions and 2 deletions

View 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);
}

View 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