mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
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>
This commit is contained in:
parent
0b60a7fb60
commit
514da6924e
1 changed files with 2 additions and 2 deletions
|
|
@ -307,14 +307,14 @@ static void ring_buffer_producer(void)
|
||||||
if (!disable_reader) {
|
if (!disable_reader) {
|
||||||
if (consumer_fifo)
|
if (consumer_fifo)
|
||||||
trace_printk("Running Consumer at SCHED_FIFO %s\n",
|
trace_printk("Running Consumer at SCHED_FIFO %s\n",
|
||||||
consumer_fifo == 1 ? "low" : "high");
|
str_low_high(consumer_fifo == 1));
|
||||||
else
|
else
|
||||||
trace_printk("Running Consumer at nice: %d\n",
|
trace_printk("Running Consumer at nice: %d\n",
|
||||||
consumer_nice);
|
consumer_nice);
|
||||||
}
|
}
|
||||||
if (producer_fifo)
|
if (producer_fifo)
|
||||||
trace_printk("Running Producer at SCHED_FIFO %s\n",
|
trace_printk("Running Producer at SCHED_FIFO %s\n",
|
||||||
producer_fifo == 1 ? "low" : "high");
|
str_low_high(producer_fifo == 1));
|
||||||
else
|
else
|
||||||
trace_printk("Running Producer at nice: %d\n",
|
trace_printk("Running Producer at nice: %d\n",
|
||||||
producer_nice);
|
producer_nice);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue