]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: switch Yes/No output to lower case
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 10 Oct 2011 08:59:39 +0000 (10:59 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 11 Oct 2011 09:36:03 +0000 (11:36 +0200)
Some people complained about the first letter of Yes/No as seen in the
online and configured column in the human readabe output being a capital
letter instead of the expected lower case letter.
So let's try to make everbody happy and convert them to lower case.

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

index 8637ef1949c555ef3287cb2f939c87591f09435c..66fa971d6e51a5c0130a84f80bcbbbf3355794cb 100644 (file)
@@ -850,7 +850,7 @@ get_cell_data(struct lscpu_desc *desc, int cpu, int col,
                                 desc->configured[cpu] ? _("Y") : _("N"));
                else
                        snprintf(buf, bufsz,
-                                desc->configured[cpu] ? _("Yes") : _("No"));
+                                desc->configured[cpu] ? _("yes") : _("no"));
                break;
        case COL_ONLINE:
                if (!desc->online)
@@ -860,7 +860,7 @@ get_cell_data(struct lscpu_desc *desc, int cpu, int col,
                                 is_cpu_online(desc, cpu) ? _("Y") : _("N"));
                else
                        snprintf(buf, bufsz,
-                                is_cpu_online(desc, cpu) ? _("Yes") : _("No"));
+                                is_cpu_online(desc, cpu) ? _("yes") : _("no"));
                break;
        }
        return buf;