Re: Silly printk problem

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

 



Debarchan Dash (Debarchan.Dash@lntinfotech.com) wrote:
> 
> I think you can use either of the following formats for printk....
> printf(KERN_DEBUG "your message"):
> printk(KERN_ALERT "your message);
> 
> for executing the first one you type
> echo 8 /proc/sys/kernel/printk
> 
> then compile the program..
> hope it will work

a printk like this one :
printk( "<1>your_text\n" );
must print on your tty or in /var/log/messages.
"<1>" is the "higher" priority.
-- 
Cordialement/Regards
Iomeda SA (clucas@iomeda.fr)
Christophe Lucas -- Developpeur/Administrateur GNU/Linux
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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