Can I use printf in kernel module?

Jun 10, 2005 2 Replies

In the book, we have been suggested that use printk.



but I have seen some kernel module that use printf. When can use use printf? and when is not?



thanks.


Good advice.

Which one?

When you're running in user-space (not in the kernel).

When in the kernel.

Grant Edwards grante Yow! Am I in GRADUATE at SCHOOL yet? visi.com

Thanks for your help.

sorry, I got the point. In my case, it have a #define printf printk

^_^

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required