Find the answer to your Linux question:
Results 1 to 3 of 3
My printk statement looks like: printk(KERN_DEBUG "Hello world\n"); My syslogd and klogd are both running, but I can't find the "Hello world" in the /var/log/messages file. Where is wrong? Why ...
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Posts
    43

    /var/log/messages

    My printk statement looks like:

    printk(KERN_DEBUG "Hello world\n");

    My syslogd and klogd are both running, but I can't find the "Hello world" in the /var/log/messages file.

    Where is wrong? Why does not my printk statement go to /var/log/messages?

    Thank you very much!

  2. #2
    Just Joined!
    Join Date
    Dec 2007
    Posts
    29
    try this;

    Code:
    $sudo less /var/log/kern.log
    Raed

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Exclamation

    else try this
    Code:
    printk(KERN_ALERT "Hello, world \n");
    Open new terminal and use the command
    Code:
    tail -f /var/log/messages
    In another terminal ,
    Compile and insert your module using insmod command
    and check the messages file.
    EDIT :
    Oops : Sorry looks like very very old post ..lol
    Last edited by Lakshmipathi; 07-23-2008 at 09:55 AM. Reason: Oops : Sorry looks like very very old post ..lol :)
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

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