RE: kernel support for non-English user messages

Chuck Ebbert (76306.1226@compuserve.com)
Fri, 11 Apr 2003 12:57:28 -0400


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/