Re: Kernel message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2 Jun 2007, [email protected] wrote:

> Can anyone send me the documentation about dmesg message that how
> can we understand by it. I am searching good document which can
> explain each and every line of dmesg.
>
> umesh

  this is really more of a kernel newbie question that belongs on the
newbie list but, if you really want to know the meaning of each line,
you might want to trace the code from kernel startup to see when each
of those lines is printed to see what they represent.

  starting in init/main.c, find the routine "start_kernel" around line
500 and several lines in, you'll see:

...
printk(KERN_NOTICE);
printk(linux_banner);
...

(why these two printk's are broken over two lines is a mystery but ...
whatever.)

  then if you go to init/version.c, you can verify that linux_banner
does indeed represent the normal first line in /var/log/dmesg, such
as:

Linux version 2.6.20-1.2948.fc6
([email protected]) (gcc version 4.1.1 20070105
(Red Hat 4.1.1-51)) #1 SMP Fri Apr 27 19:48:40 EDT 2007

  at that point, start following the code to see where each line in
dmesg comes from.

rday

p.s.  please use a better subject line than just "Kernel message".
that doesn't tell anyone what you're actually asking about.

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux