Find the answer to your Linux question:
Results 1 to 2 of 2
I am debugging the kernel through the printk statements . but i am not getting the files which contain the printk statements. I have checked for var/log/messages , var/log/dmesg ,var/log/debug ...
  1. #1
    Just Joined!
    Join Date
    Dec 2011
    Posts
    29

    Angry which file contains the statements printed by the printk

    I am debugging the kernel through the printk statements . but i am not getting the files which contain the printk statements. I have checked for
    var/log/messages , var/log/dmesg ,var/log/debug ,var/lod/syslog etc
    but none of the file contains statements which are printed on the terminal (on dmesg).

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    The output from printk is buffered by the kernel and not output right away. How quickly it is output depends upon the setting of console_loglevel in the kernel module you are calling printk from. The printk function looks at that setting when it is called to determine how long to buffer the output.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...