From: Nam Cao <namcao@linutronix.de>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: John Ogness <john.ogness@linutronix.de>,
Masami Hiramatsu <mhiramat@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Gabriele Monaco <gmonaco@redhat.com>,
linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org,
Petr Mladek <pmladek@suse.com>,
Sergey Senozhatsky <senozhatsky@chromium.org>
Subject: Re: [PATCH v12 02/12] printk: Make vprintk_deferred() public
Date: Wed, 9 Jul 2025 20:53:34 +0200 [thread overview]
Message-ID: <20250709185334.uFpAU2mC@linutronix.de> (raw)
In-Reply-To: <20250709144914.6ee7199b@batman.local.home>
On Wed, Jul 09, 2025 at 02:49:14PM -0400, Steven Rostedt wrote:
> On Wed, 9 Jul 2025 19:56:19 +0200
> Nam Cao <namcao@linutronix.de> wrote:
>
> > diff --git a/include/linux/printk.h b/include/linux/printk.h
> > index 5b462029d03c..d886ec98fbbd 100644
> > --- a/include/linux/printk.h
> > +++ b/include/linux/printk.h
> > @@ -154,6 +154,7 @@ int vprintk_emit(int facility, int level,
> >
> > asmlinkage __printf(1, 0)
> > int vprintk(const char *fmt, va_list args);
> > +__printf(1, 0) int vprintk_deferred(const char *fmt, va_list args);
> >
> > asmlinkage __printf(1, 2) __cold
> > int _printk(const char *fmt, ...);
> > @@ -214,6 +215,10 @@ int vprintk(const char *s, va_list args)
> > {
> > return 0;
> > }
> > +static inline __printf(1, 0) int vprintk_deferred(const char *fmt, va_list args)
> > +{
> > + return 0;
> > +}
> > static inline __printf(1, 2) __cold
> > int _printk(const char *s, ...)
> > {
>
> All use cases I've seen throughout the kernel has the __printf() macro
> on the line before the function. You're introducing a new formatting.
> I'm thinking we should stay consistent:
>
> __printf(1, 0)
> int vprintk_deferred(const char *fmt, va_list args);
>
> static inline __printf(1, 0)
> int vprintk_deferred(const char *fmt, va_list args)
> {
> return 0;
> }
Yes we should.
It is possible that you make this amendment when/if you apply the patch, or
do you prefer me sending a new version?
Nam
next prev parent reply other threads:[~2025-07-09 18:53 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-09 17:56 [PATCH v12 00/12] RV: Linear temporal logic monitors for RT application Nam Cao
2025-07-09 17:56 ` [PATCH v12 01/12] rv: Add #undef TRACE_INCLUDE_FILE Nam Cao
2025-07-09 17:56 ` [PATCH v12 02/12] printk: Make vprintk_deferred() public Nam Cao
2025-07-09 18:49 ` Steven Rostedt
2025-07-09 18:53 ` Nam Cao [this message]
2025-07-09 19:04 ` Steven Rostedt
2025-07-09 19:09 ` Nam Cao
2025-07-09 19:21 ` Steven Rostedt
2025-07-09 17:56 ` [PATCH v12 03/12] panic: Add vpanic() Nam Cao
2025-07-09 17:56 ` [PATCH v12 04/12] rv: Let the reactors take care of buffers Nam Cao
2025-07-09 17:56 ` [PATCH v12 05/12] rv: rename CONFIG_DA_MON_EVENTS to CONFIG_RV_MON_EVENTS Nam Cao
2025-07-09 17:56 ` [PATCH v12 06/12] rv: Add support for LTL monitors Nam Cao
2025-07-09 17:56 ` [PATCH v12 07/12] rv: Add rtapp container monitor Nam Cao
2025-07-09 17:56 ` [PATCH v12 08/12] riscv: mm: Add page fault trace points Nam Cao
2025-07-09 17:56 ` [PATCH v12 09/12] rv: Add rtapp_pagefault monitor Nam Cao
2025-07-09 17:56 ` [PATCH v12 10/12] rv: Add rtapp_sleep monitor Nam Cao
2025-07-09 17:56 ` [PATCH v12 11/12] rv: Add documentation for rtapp monitor Nam Cao
2025-07-09 17:56 ` [PATCH v12 12/12] rv: Allow to configure the number of per-task monitor Nam Cao
2025-07-09 18:02 ` [PATCH v12 00/12] RV: Linear temporal logic monitors for RT application Steven Rostedt
2025-07-09 18:36 ` Nam Cao
2025-08-10 21:12 ` patchwork-bot+linux-riscv
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250709185334.uFpAU2mC@linutronix.de \
--to=namcao@linutronix.de \
--cc=gmonaco@redhat.com \
--cc=john.ogness@linutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=pmladek@suse.com \
--cc=rostedt@goodmis.org \
--cc=senozhatsky@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).