From mboxrd@z Thu Jan 1 00:00:00 1970 From: philipp.muhoray@gmail.com (Philipp Muhoray) Date: Sun, 23 Nov 2014 09:21:52 +0100 Subject: Not getting printk output In-Reply-To: <1416722297.12698.2.camel@mayank-Lenovo-Z50-70> References: <1416722297.12698.2.camel@mayank-Lenovo-Z50-70> Message-ID: <54719920.3030806@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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