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.
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.
Thanks for your help.
sorry, I got the point. In my case, it have a #define printf printk
^_^
Have something to add? Share your thoughts — no account required.
Ask the community — no account required