diff options
author | WANG Chao | 2015-05-13 05:15:05 +0200 |
---|---|---|
committer | Karel Zak | 2015-05-13 11:27:16 +0200 |
commit | ee1f1057e25d3cce300664ea449eea4fe6deb7ff (patch) | |
tree | ea48c2a6e65c96bdffd4700a913aa3037777d469 /sys-utils/lscpu.c | |
parent | libfdisk: keep FDISK_FIELD_CYLINDERS independent on context mode (diff) | |
download | kernel-qcow2-util-linux-ee1f1057e25d3cce300664ea449eea4fe6deb7ff.tar.gz kernel-qcow2-util-linux-ee1f1057e25d3cce300664ea449eea4fe6deb7ff.tar.xz kernel-qcow2-util-linux-ee1f1057e25d3cce300664ea449eea4fe6deb7ff.zip |
lscpu: add cpu flags entry to summary output
It'd be convenient to have unified cpu "Flags: " entry in the summary
output.
Signed-off-by: WANG Chao <wcwxyz@gmail.com>
Diffstat (limited to 'sys-utils/lscpu.c')
-rw-r--r-- | sys-utils/lscpu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c index fd94d1a83..b36d1daa7 100644 --- a/sys-utils/lscpu.c +++ b/sys-utils/lscpu.c @@ -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) |