Can I use printf in kernel module?

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.

Reply to
wuulong
Loading thread data ...

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
Reply to
Grant Edwards

Thanks for your help.

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

^_^

Reply to
wuulong

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.