Skip to contentSkip to conversation

trace-cmd report: Have -q not print empty CPUs

PATCH New Steven Rostedt 1 participant 1 message Mar 14, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trace-cmd report: Have -q not print empty CPUs

From: "Steven Rostedt (Google)" <[email protected]>

Do not print that a CPU contains no data if the -q option is present.

---
 lib/trace-cmd/trace-input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/trace-cmd/trace-input.c +1 -1
index 643dd807c575..aa40d2451ab6 100644
@@ -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;
 	}
 
Signature · 1 line
2.35.1