Skip to content

Commit 514da69

Browse files
tobluxrostedt
authored andcommitted
ring-buffer: Use str_low_high() helper in ring_buffer_producer()
Remove hard-coded strings by using the helper function str_low_high(). Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://lore.kernel.org/20241018110709.111707-2-thorsten.blum@linux.dev Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 0b60a7f commit 514da69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/trace/ring_buffer_benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,14 +307,14 @@ static void ring_buffer_producer(void)
307307
if (!disable_reader) {
308308
if (consumer_fifo)
309309
trace_printk("Running Consumer at SCHED_FIFO %s\n",
310-
consumer_fifo == 1 ? "low" : "high");
310+
str_low_high(consumer_fifo == 1));
311311
else
312312
trace_printk("Running Consumer at nice: %d\n",
313313
consumer_nice);
314314
}
315315
if (producer_fifo)
316316
trace_printk("Running Producer at SCHED_FIFO %s\n",
317-
producer_fifo == 1 ? "low" : "high");
317+
str_low_high(producer_fifo == 1));
318318
else
319319
trace_printk("Running Producer at nice: %d\n",
320320
producer_nice);

0 commit comments

Comments
 (0)