* [PATCH] trace-cmd report: Have -q not print empty CPUs
@ 2022-03-14 17:05 Steven Rostedt
0 siblings, 0 replies; only message in thread
From: Steven Rostedt @ 2022-03-14 17:05 UTC (permalink / raw)
To: Linux Trace Devel
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>
Do not print that a CPU contains no data if the -q option is present.
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
lib/trace-cmd/trace-input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/trace-cmd/trace-input.c b/lib/trace-cmd/trace-input.c
index 643dd807c575..aa40d2451ab6 100644
--- a/lib/trace-cmd/trace-input.c
+++ b/lib/trace-cmd/trace-input.c
@@ -2720,7 +2720,7 @@ static int init_cpu(struct tracecmd_input *handle, int cpu)
list_head_init(&cpu_data->compress.cache);
if (!cpu_data->size) {
- printf("CPU %d is empty\n", cpu);
+ tracecmd_info("CPU %d is empty", cpu);
return 0;
}
--
2.35.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-14 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-14 17:05 [PATCH] trace-cmd report: Have -q not print empty CPUs Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).