Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH] lscpu: add cpu flags entry to summary output
@ 2015-05-13  3:15 WANG Chao
  2015-05-13  9:32 ` Karel Zak
  0 siblings, 1 reply; 5+ messages in thread
From: WANG Chao @ 2015-05-13  3:15 UTC (permalink / raw)
  To: util-linux

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 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index fd94d1a..b36d1da 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)
-- 
2.3.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-15 12:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-13  3:15 [PATCH] lscpu: add cpu flags entry to summary output WANG Chao
2015-05-13  9:32 ` Karel Zak
2015-05-15  7:37   ` Heiko Carstens
2015-05-15 10:54     ` Karel Zak
2015-05-15 12:40       ` Heiko Carstens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox