From nobody Tue Nov 26 10:54:24 2024 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7E22205ACD for ; Fri, 18 Oct 2024 20:07:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729282052; cv=none; b=Vz0swGlDNuMOb2WxUPkB07YRFdr9ZDZBjhubKQEFV37WtLoPip3NCRmNL5bbasL1G0XqCNSjpKSdzajBJCjuxS1/ATBdxbo7lCgJfRXwr2VHe/Tkz8KtQIO7zuvQRXFc7syWu48vdYivXrTaMUfeYbqXfk2YByt0gzc3oT+ZiKg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729282052; c=relaxed/simple; bh=o5p0evTJ87uWJFGARawD85YbDHCUXfZ9AMz5MOc4c/s=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=M+/pbCJ2auNcNrutqOG5kfVlSJvfhEChWJ5AQB09PtvWWLYLKXLjvar9Ic/tPQfG98OLC2wLl+C+Yq6KrmfhHPVHc25r1ztS2jirIWkUZGAzbr+eqdzNaV4g22sOmzsgRGBDp5bezyCkUL0VRJATC1D/lbv43nD2H+31MSsV8KA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E28BC4CED1; Fri, 18 Oct 2024 20:07:32 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.98) (envelope-from ) id 1t1tGR-00000004EyI-0eU1; Fri, 18 Oct 2024 16:07:59 -0400 Message-ID: <20241018200759.024381762@goodmis.org> User-Agent: quilt/0.68 Date: Fri, 18 Oct 2024 16:07:49 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , Thorsten Blum Subject: [for-next][PATCH 3/3] ring-buffer: Use str_low_high() helper in ring_buffer_producer() References: <20241018200746.849970367@goodmis.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Thorsten Blum Remove hard-coded strings by using the helper function str_low_high(). Cc: Masami Hiramatsu Cc: Mathieu Desnoyers Link: https://lore.kernel.org/20241018110709.111707-2-thorsten.blum@linux.d= ev Signed-off-by: Thorsten Blum Signed-off-by: Steven Rostedt (Google) --- kernel/trace/ring_buffer_benchmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/ring_buffer_benchmark.c b/kernel/trace/ring_buffe= r_benchmark.c index 008187ebd7fe..cdc3aea12c93 100644 --- a/kernel/trace/ring_buffer_benchmark.c +++ b/kernel/trace/ring_buffer_benchmark.c @@ -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 =3D=3D 1 ? "low" : "high"); + str_low_high(consumer_fifo =3D=3D 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 =3D=3D 1 ? "low" : "high"); + str_low_high(producer_fifo =3D=3D 1)); else trace_printk("Running Producer at nice: %d\n", producer_nice); --=20 2.45.2