Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
PostgreSQL 9.3 beta: Federated databases and more
LWN.net Weekly Edition for May 9, 2013
(Nearly) full tickless operation in 3.10
That is horrible. You already end up often enough in Windows with messages like "Error 1026" and dunno wtf it means without doing lengthy searches on MSDN.
Posted Sep 27, 2007 9:01 UTC (Thu) by filipjoelsson (subscriber, #2622)
Let "make install" put a printk.map-2.6.24 in /boot for vmlinuz-2.6.24 - and syslog/dmesg could grab the relevant message and make the switch. For embedded systems you could trim the lower levels of interest, zip the file, or whatever. You should get the error code only if the relevant string isn't found - and that should happen only if you have actively chosen to trim that class of printks (or printks alltogether - but in that case, and error code would be an improvent on no-message-at-all, right?).
This leaves the problem of getting the message out in case of a kernel panic - so maybe a subset of strings still need to reside in the kernel. But I don't believe all of it is needed there.
I agree we don't need messages like "Error 1026" and lengthy MSDN searches to uncover that it means "Memory corruption" - but bloating the RAM with error strings isn't the only alternative.
Seriously, I know putting too much stuff in userland is frowned upon - but putting error translation there looks way better than putting filesystems in userland.
Posted Sep 27, 2007 13:34 UTC (Thu) by nix (subscriber, #2304)
(Also, what about the printf()-style format substitutions printk() allows? An error ID scheme provides no space for that at all. There's a reason the old catgets scheme is unused except by masochists.)
Posted Sep 27, 2007 9:11 UTC (Thu) by james (subscriber, #1325)
Error message numbers...
Posted Oct 3, 2007 16:00 UTC (Wed) by hummassa (subscriber, #307)
Posted Oct 3, 2007 16:07 UTC (Wed) by jengelh (subscriber, #33263)
Posted Oct 3, 2007 16:25 UTC (Wed) by felixfix (subscriber, #242)
Posted Oct 3, 2007 19:08 UTC (Wed) by nix (subscriber, #2304)
And so on.
I'd say that 25% of my error-message-revealed bug-fixing time is spent
figuring out just what the hell the system is actually trying to tell me,
entirely because of this problem.
[ot] sqlplus or oracle developer
Posted Oct 22, 2007 23:32 UTC (Mon) by hummassa (subscriber, #307)
use one of sqlplus or oracle developer to repeat your query, they usually
mark the right spot where the error ocurred.
Posted Oct 23, 2007 13:09 UTC (Tue) by nix (subscriber, #2304)
Very amusing, well done.
(they always mark *a* spot, often an entirely different one. I don't
castigate them for this: parser error recovery is notoriously difficult.
But the numbered-error-messages thing just makes everything so much harder
than it should be...)
So change your config
Posted Sep 27, 2007 14:32 UTC (Thu) by felixfix (subscriber, #242)
Posted Sep 28, 2007 22:02 UTC (Fri) by nlucas (subscriber, #33793)
I'm still waiting for someone to come up with a better idea.
A message in a foreign language you don't know (remember the majority of the world population doesn't speak English) doesn't seem to me the brightest idea around.
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds