]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: add cpu flags entry to summary output
authorWANG Chao <wcwxyz@gmail.com>
Wed, 13 May 2015 03:15:05 +0000 (11:15 +0800)
committerKarel Zak <kzak@redhat.com>
Wed, 13 May 2015 09:27:16 +0000 (11:27 +0200)
It'd be convenient to have unified cpu "Flags: " entry in the summary
output.

Signed-off-by: WANG Chao <wcwxyz@gmail.com>
sys-utils/lscpu.c

index fd94d1a83f190abe2a116edc091dde99ced8a11e..b36d1daa79a48fa23488a9a926de66a6fa55acaa 100644 (file)
@@ -1634,6 +1634,9 @@ print_summary(struct lscpu_desc *desc, struct lscpu_modifier *mod)
                snprintf(buf, sizeof(buf), _("NUMA node%d CPU(s):"), desc->idx2nodenum[i]);
                print_cpuset(buf, desc->nodemaps[i], mod->hex);
        }
+
+       if (desc->flags)
+               print_s(_("Flags:"), desc->flags);
 }
 
 static void __attribute__((__noreturn__)) usage(FILE *out)