views:

29

answers:

2

We can use printk to send debug message in kernal driver. I have a user mode AP that call kernal driver. I would like to output user mode AP debug message with kernal mode driver at the same time. How to do that?

+1  A: 

If I understood your question correctly, I guess you are looking for syslog C API. $ man 3 syslog tells you everything you need.

Kimvais
A: 

You might want to check out syslog(). Generally though, you can probably do what you want without playing in the system log by using the normal print function for whatever language you're using in userspace, and manually looking at the two different outputs.

Bryan