lkml.org 
[lkml]   [1997]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectKernel Language support
Just to throw something new into the fray:

avatar@ulfheim:/usr/src/linux# find * -type f -exec grep printk {} \; | wc | sed -e 's/\>.*//'
11942

That's almost 12000 printk's in the kernel. Not that I'm saying it
wouldn't be worth doing, just saying that it'd be more than one
afternoon's project.

FWIW, I liked the idea about the
#define ERROR_CONDITION "Error Condition";
printk(KERN_LEVEL, ERROR_CONDITION);

This would put things in a central repository I suppose,
<linux/printk_en.h> for English etc., and every file with a printk
#include'ing this header file. Depending on the size and number of the
resultant translation files, probably only English would be included in
the distribution, with other languages being available as patches.
Mike

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