From: philipp.muhoray@gmail.com (Philipp Muhoray)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Not getting printk output
Date: Sun, 23 Nov 2014 09:21:52 +0100 [thread overview]
Message-ID: <54719920.3030806@gmail.com> (raw)
In-Reply-To: <1416722297.12698.2.camel@mayank-Lenovo-Z50-70>
Am 2014-11-23 um 06:58 schrieb Mayank:
> Hi,
> I am trying to print something to the kernel debug log level using
> printk, but while using dmesg i am not getting the output on the
> console. My /proc/sys/kernel/printk setting is 4 4 1 7.
> Please help
>
> Thanks,
> Mayank
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hello,
Does your string end with the newline character '\n'? Otherwise your
output will not be flushed immediately (it remains in the buffer). So try
printk(KERN_DEBUG "Hello World!\n");
Maybe that helps.
br,
phil
next prev parent reply other threads:[~2014-11-23 8:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-23 5:58 Not getting printk output Mayank
2014-11-23 7:06 ` karthik nayak
2014-11-23 8:21 ` Philipp Muhoray [this message]
2014-11-23 13:19 ` karthik nayak
2014-11-27 17:22 ` Vignesh Radhakrishnan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54719920.3030806@gmail.com \
--to=philipp.muhoray@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.