Re: [PATCH next] tracing: Remove spurious default precision from show_event_trigger/filter formats
From: Steven Rostedt
Date: Fri Mar 27 2026 - 10:29:25 EST
On Fri, 27 Mar 2026 10:15:17 +0100
Petr Mladek <pmladek@xxxxxxxx> wrote:
> On Thu 2026-03-26 20:18:24, david.laight.linux@xxxxxxxxx wrote:
> > From: David Laight <david.laight.linux@xxxxxxxxx>
> >
> > Change 2d8b7f9bf8e6e ("tracing: Have show_event_trigger/filter format a bit more in columns")
> > added space padding to align the output.
> > However it used ("%*.s", len, "") which requests the default precision.
> > It doesn't matter here whether the userspace default (0) or kernel
> > default (no precision) is used, but the format should be "%*s".
> >
> > Signed-off-by: David Laight <david.laight.linux@xxxxxxxxx>
>
> Makes sense. It does not change the output because it printed
> an empty string "" so the precision did not matter.
Right. I use this in user space all the time, and add "%*.s" a lot.
I tested it and it doesn't change the output so I'm happy to take it
through my tree.
-- Steve
>
> Reviewed-by: Petr Mladek <pmladek@xxxxxxxx>
>
> Best Regards,
> Petr