Re: New Feature Idea: Configurable text(msgs)

Theodore Y. Ts'o (tytso@MIT.EDU)
Wed, 18 Mar 1998 14:24:53 -0500


Date: Wed, 18 Mar 1998 14:38:23 +1100
From: Kevin Lentin <kevinl@cs.monash.edu.au>

What about the OS/2 system (which I'm sure has been used elsewhere).

We assign every error message a number. The kernel puts that error number
in the printk. A kernel error daemon, or indeed klogd, uses a message file
to translate the message into the language of choice. The printk can still
include a message which would be used instead of, or in addition to, the
message file.

eg:
printk("Oh my God! You killed Kenny!");
becomes:
printk("@0056@Oh my God! You killed Kenny!");

And how does OS/2 handle error message with parameterized arguments?

printk("Unit %d to Control: Kenny has been killed in sector %d",
unit, sector);

- Ted

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu