Re: [PATCH] printk.h: fix overzealous pr_fmt in pr_debug_ratelimited
From: jim . cromie
Date: Fri Nov 27 2026 - 10:44:52 EST
On Thu, Nov 26, 2026 at 8:00 AM Petr Mladek <pmladek@xxxxxxxx> wrote:
>
> On Wed 2026-11-25 11:12:53, Jim Cromie via B4 Relay wrote:
> > From: Jim Cromie <jim.cromie@xxxxxxxxx>
> >
> > Historically, the CONFIG_DYNAMIC_DEBUG implementation of
> > pr_debug_ratelimited() passed raw fmt to both metadata and runtime:
> >
> > DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt);
> > if (unlikely(...) && __ratelimit(&_rs))
> > __dynamic_pr_debug(&descriptor, fmt, ##__VA_ARGS__);
> >
> > While descriptor metadata was clean, emitted dmesg records lacked the
> > pr_fmt prefix present in the !CONFIG_DYNAMIC_DEBUG fallbacks.
> >
,,,
> > Signed-off-by: Jim Cromie <jim.cromie@xxxxxxxxx>
>
> Looks reasonable to me:
>
> Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
>
> Jim, should I take it via printk tree? Or would it be better to take
> it via another three to avoid conflicts, please?
>
> Best Regards,
> Petr
>
thanks Petr, (and John)
Ideally, AKPM will pick it into nonmm-unstable -
thats the most likely path for my dd-classmaps-fixes series (cooking now)
which verifies the test-module output, which this patch alters.