From nobody Sun Feb 8 22:58:31 2026 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 9CBD910A1F for ; Fri, 7 Mar 2025 00:45:27 +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=1741308327; cv=none; b=jd54VT7e8TLO4BFJEPQRV7bVm8citqsyEEtay1NZvQy+//p986zdmnp0tFsWhGpZ8PoSC1EX23HCskhQfuNz4pcR7tWGmXCEkCW7Rgr4TI9Dl8gECOuLiPYuglgbwG4sFPwGrhANXuewaNWKjkWRxmUrVj8m9y02fkZO59cXn0A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741308327; c=relaxed/simple; bh=oKj/CTSpC+LF4GQ5CpB3zWsuCSt2BMhTqQ3SA00fYq4=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type; b=F58lxVjXgKrCbFjVihcUK9IuACO1VSThr+sbP2lijq3/zY5IenQ+QbKTepAuuAtNOE+nU3v1wCR0mJHQb7/dRHbvERPn5SQhwFtc0tlgazu+XDTZWk1HxWJL/I/bLeHOiXtGSviKQ8si/2lUB/0d1crjWrYKiyyz+YgSWUGJf3Y= 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 71E0BC4CEEB; Fri, 7 Mar 2025 00:45:27 +0000 (UTC) Received: from rostedt by gandalf with local (Exim 4.98) (envelope-from ) id 1tqLqA-000000005AC-3v0o; Thu, 06 Mar 2025 19:45:26 -0500 Message-ID: <20250307004526.790035373@goodmis.org> User-Agent: quilt/0.68 Date: Thu, 06 Mar 2025 19:45:13 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Mark Rutland , Mathieu Desnoyers , Andrew Morton , Christophe JAILLET Subject: [for-next][PATCH 2/3] tracing/user_events: Slightly simplify user_seq_show() References: <20250307004511.688485107@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: Christophe JAILLET 2 seq_puts() calls can be merged. It saves a few lines of code and a few cycles, should it matter. Cc: Masami Hiramatsu Cc: Mathieu Desnoyers Link: https://lore.kernel.org/845caa94b74cea8d72c158bf1994fe250beee28c.1739= 979791.git.christophe.jaillet@wanadoo.fr Signed-off-by: Christophe JAILLET Signed-off-by: Steven Rostedt (Google) --- kernel/trace/trace_events_user.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kernel/trace/trace_events_user.c b/kernel/trace/trace_events_u= ser.c index 3effc6fce20e..af42aaa3d172 100644 --- a/kernel/trace/trace_events_user.c +++ b/kernel/trace/trace_events_user.c @@ -2793,11 +2793,8 @@ static int user_seq_show(struct seq_file *m, void *p) =20 seq_printf(m, "%s", EVENT_TP_NAME(user)); =20 - if (status !=3D 0) - seq_puts(m, " #"); - if (status !=3D 0) { - seq_puts(m, " Used by"); + seq_puts(m, " # Used by"); if (status & EVENT_STATUS_FTRACE) seq_puts(m, " ftrace"); if (status & EVENT_STATUS_PERF) --=20 2.47.2