lkml.org 
[lkml]   [2003]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: kernel support for non-English user messages
Alan Cox wrote:


> You are right about needing to log parameters, but given a log line
> of the form
>
> %s: went up in flames\n\0eth0\0\0
>
> that can be handled by the log viewer


I still see some problems...

For one, there are 131 instances of:

printk("%s\n", blurb);

in various forms in 2.5.66. Besides possible ritual immolation of
those responsible for such things, something would have to be done
about them.

Another problem is the one of getting that text onto the console
in readable form. The only thing I can think of is have a two-stage
process where printk puts the data into the log buffer as
zero-terminated strings and then the console write routines format
it for display. They'd probably need their own buffers to do that.


> %s: went up in flames\n\0eth0\0\0


Is that "\n" an actual ASCII newline or the printk escape sequence?



--
"Let's fight until six, and then have dinner," said Tweedledum.
--Lewis Carroll, _Through the Looking Glass_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.028 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site