Thread (7 messages) 7 messages, 3 authors, 2025-03-24

Re: [PATCH] tracing: Fix synth event printk format for str fields

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-03-24 21:11:21
Also in: lkml

On Mon, 24 Mar 2025 09:40:05 -0400
Steven Rostedt [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help