Skip to contentSkip to conversation

kernel support for non-English user messages

DISCUSSION Chuck Ebbert 1 participant 1 message Apr 12, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines

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

How about this scheme instead?

    printk("%s: went up in flames\n", "eth0");

would become

    \0eth0\0: went up in flames\n\0\0

i.e. the zeros would mark a transition between text that came from parameters and what was from the format string. This would be a lot easier to write to the console.

--
"Let's fight till six, and then have dinner," said Tweedledum.
--Lewis Carroll, _Through the Looking Glass_