lkml.org 
[lkml]   [1998]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: New Feature Idea: Configurable text(msgs)
   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

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