PDA

View Full Version : Difference between printf and printk



nkrao123@gmail.
07-05-2011, 12:14 AM
Hi ,

Any body give me clarity deference between printf and printk.

1.where we use printk.

i appreciate any response

Salem
07-05-2011, 01:05 AM
One of many pages as a result of a simple google search!
printk() (http://book.chinaunix.net/special/ebook/Linux_Kernel_Development/0672327201/ch18lev1sec3.html)

Fordy
07-05-2011, 02:07 AM
printk is a kernel mode function to allow printf-like usage in driver modules. Dont use it anywhere else