Re: [PATCH] tracing: Fix synth event printk format for str fields
From: Steven Rostedt
Date: Mon Mar 24 2025 - 17:16:22 EST
On Mon, 24 Mar 2025 09:40:05 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> So I did take this patch, but thinking about this more, I may remove it.
>
> The __get_str() doesn't expect a string end. The parser should limit it, as
> the length of the string is saved in the ring buffer. Just like other trace
> events where dynamically size strings only use "%s" and __get_str().
>
> I think the real fix is to replace the "%.*s" with "%s".
I just tested it out. Yep, it should just be "%s".
-- Steve