Getting the message from the kernel
Posted Jun 21, 2007 7:47 UTC (Thu) by
dlang (
✭ supporter ✭, #313)
In reply to:
Getting the message from the kernel by thedevil
Parent article:
Getting the message from the kernel
no, the message itself is not always unique.
remember that messages are formed through printf, where you give a message format with variables and then have the variables fill in the blanks
it's not at all uncommon to see something like "error %s happened when doing %s"
depending on what the variables are filled in with you could have this happen anywhere in the kernel.
on a lot of my programs I add a number to the front of the message, even if it isn't unique it at least limits the number of places I need to look. the line and file macros mentioned above sound like exactly the right thing to use.
the main purpose of these tags is to look in the right place in the kernel, not to try and translate all possible kernel errors into multiple languages.
(
Log in to post comments)