]> Git Repo - J-linux.git/commitdiff
ring-buffer: Use str_low_high() helper in ring_buffer_producer()
authorThorsten Blum <[email protected]>
Fri, 18 Oct 2024 11:07:10 +0000 (13:07 +0200)
committerSteven Rostedt (Google) <[email protected]>
Sat, 19 Oct 2024 15:12:25 +0000 (11:12 -0400)
Remove hard-coded strings by using the helper function str_low_high().

Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Thorsten Blum <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
kernel/trace/ring_buffer_benchmark.c

index 008187ebd7fe601d6e09a431cb79d606679aad43..cdc3aea12c93d7593f34c1e7b5346bbad0481c0f 100644 (file)
@@ -307,14 +307,14 @@ static void ring_buffer_producer(void)
        if (!disable_reader) {
                if (consumer_fifo)
                        trace_printk("Running Consumer at SCHED_FIFO %s\n",
-                                    consumer_fifo == 1 ? "low" : "high");
+                                    str_low_high(consumer_fifo == 1));
                else
                        trace_printk("Running Consumer at nice: %d\n",
                                     consumer_nice);
        }
        if (producer_fifo)
                trace_printk("Running Producer at SCHED_FIFO %s\n",
-                            producer_fifo == 1 ? "low" : "high");
+                            str_low_high(producer_fifo == 1));
        else
                trace_printk("Running Producer at nice: %d\n",
                             producer_nice);
This page took 0.044616 seconds and 4 git commands to generate.