Re: Not getting printk output

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

 



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@xxxxxxxxxxxxxxxxx
> 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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux