Re: [GIT PULL/RESEND] kernel message catalog patches

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Monday, October 27, 2008 - 8:05 am

On Mon, 27 Oct 2008, Martin Schwidefsky wrote:

It's that I don't like out-of-line documentation. It's a damn pain to 
maintain, and it's _especially_ so when it's for small details rather than 
"big picture" issues.

I also consider this to be _exactly_ the same issue as translating kernel 
messages into another language (which people have also wanted to do), 
except the "other language" is a S390-specific "odd-speak" rather than a 
real language.

I have to say that I also dislike the technical implementation. I don't 
like having yet another printk() wrapper - your "kmsg_warn()" won't play 
well with people who have messages they want to print, but that use helper 
routines - or then you'd need to essentially change _every_ printk to a 
kmsg_xyz(). 

So if you want to have a hash (so that you can identify the _format_ 
string rather than the printed out message), I personally think you'd be 
better off thinking of it purely the same way as CONFIG_PRINTK_TIME, and 
just have a config option that disables or enables the hashing of the 
format string, the same way we have an option for disabling or enabling of 
the timestamping of the printk.

I also suspect that it would be better to not _print_ it, but only put it 
into the dmesg logs (the same way we do with the urgency level marker).

IOW, I think we could put a few lines of code in "vprintk" that just 
hashes ove 'fmt' and then adds that to the output.

And as for the actual explanations: either they need to be totally outside 
the kernel (in a project of their own), or they'd need to be "kernel-doc" 
style things that are _in_ the source code. Not in Documentation/. Not 
separate from the printk() that they are associated with.

			Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PULL] kernel message catalog patches, Martin Schwidefsky, (Thu Oct 16, 7:50 am)
Re: [GIT PULL] kernel message catalog patches, Martin Schwidefsky, (Fri Oct 17, 12:59 am)
[GIT PULL/RESEND] kernel message catalog patches, Heiko Carstens, (Tue Oct 21, 2:21 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Linus Torvalds, (Thu Oct 23, 8:35 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Heiko Carstens, (Thu Oct 23, 2:04 pm)
Re: [GIT PULL/RESEND] kernel message catalog patches, Linus Torvalds, (Thu Oct 23, 2:37 pm)
Re: [GIT PULL/RESEND] kernel message catalog patches, Heiko Carstens, (Fri Oct 24, 8:50 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Linus Torvalds, (Sun Oct 26, 12:12 pm)
Re: [GIT PULL/RESEND] kernel message catalog patches, Martin Schwidefsky, (Sun Oct 26, 12:26 pm)
Re: [GIT PULL/RESEND] kernel message catalog patches, Martin Schwidefsky, (Mon Oct 27, 3:01 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Linus Torvalds, (Mon Oct 27, 8:05 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Martin Schwidefsky, (Mon Oct 27, 8:52 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Linus Torvalds, (Mon Oct 27, 9:10 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Theodore Tso, (Mon Oct 27, 9:19 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Randy Dunlap, (Mon Oct 27, 9:27 am)
Re: [GIT PULL/RESEND] kernel message catalog patches, Theodore Tso, (Mon Oct 27, 12:36 pm)
Re: [GIT PULL/RESEND] kernel message catalog patches, Martin Schwidefsky, (Tue Oct 28, 1:25 am)