From nobody Sun Nov 24 07:27:33 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 687DF13957B for ; Tue, 22 Oct 2024 02:29:29 +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=1729564169; cv=none; b=mxTNk2SkWfldReDVl9h2NKiCEtv3BoxgBr04g2vo7vlrPvW3AX0CpwtRYdMPrpRB3BjS2MztTxKHKFCaH7KKjdXVtUpl7gO/FWFXPV41mgYPqBlwbON3V1KMBV/YVVzI+UHmgl9JhB+hjxbKqGxwAvAxBQsV7osdjSkYUVfm6Is= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729564169; c=relaxed/simple; bh=o5p0evTJ87uWJFGARawD85YbDHCUXfZ9AMz5MOc4c/s=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=Mz2S0rEuo1Cen1sDf4/lB6aBUwGg3MBHTe5bvLjzXhkRlvmzvejhAHur9N6Wrn5wf8y493rYqFgKA5xkBmNFP34Cd7JUNC4o0AEKoYGn+O5cvJogbOYYnq+ryZDJI/W2pP/83tHvc7hOMNGW/a51fQbe4i7jEIw17eH5t5ddeiA= 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 26644C4CEE9; Tue, 22 Oct 2024 02:29:29 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.98) (envelope-from ) id 1t34ep-00000004dz9-2bXH; Mon, 21 Oct 2024 22:30:03 -0400 Message-ID: <20241022023003.478971102@goodmis.org> User-Agent: quilt/0.68 Date: Mon, 21 Oct 2024 22:29:22 -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 v2 3/3] ring-buffer: Use str_low_high() helper in ring_buffer_producer() References: <20241022022919.695045683@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