lkml.org 
[lkml]   [2021]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: output: was: Re: [PATCH v4] printk: Userspace format enumeration support
Steven Rostedt writes:
>OK, now do the same in C. "%q" "and I guess that "f" in the print statement
>in python (but I don't know for sure) does some magic with converting the
>"\n" and such.
>
>I agree with Petr on this. Print the format itself, and not what is
>converted. It's much easier to convert "\t" and such to what they mean,
>than to go the other way around.

To be clear, you're advocating for escaping tabs/newlines/etc on the kernel
side, right?

That seems to be implied by your first paragraph, but "print the format itself
and not what is converted" sounds like the opposite of that to me. I assume
your meaning is "escape the format, don't print it raw", which is what Petr was
also advocating for? :-)

\
 
 \ /
  Last update: 2021-02-17 22:26    [W:0.073 / U:4.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site