RE: kernel support for non-English user messages

From: Chuck Ebbert (76306.1226@compuserve.com)
Date: Sat Apr 12 2003 - 11:47:30 EST


> 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_
-
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/



This archive was generated by hypermail 2b29 : Tue Apr 15 2003 - 22:00:27 EST