[lkml]   [1997]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: printf
> 	I write a device driver, in the program I added some printf
> sentence to get the debug information. But it seems that
> it does not work, that is I could not get any info on my
> console.
> How should I do?

Use printk(). It works like printf for the most part.

Example: printk( KERN_DEBUG "Hello World!\n" );

Where KERN_DEBUG is one of the priority levels defined in

P.S. If you are using sendmail, try changing /etc/
This will cause all mail from:
to be appear to be from:

Andrew E. Mileski
Linux Plug-and-Play Kernel Project
XFree86 Matrox Team

 \ /
  Last update: 2005-03-22 13:38    [W:0.033 / U:2.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site