Printing to the kernel log
The Linux Kernel Hackers' Guide
How kernel communicates with outside when it's started?
Tue, 24 Feb 1998 20:59:16 GMT
During my recent studies of the Linux kernel I came across a function "fprintk" which prints kernel error messages in the approprate logfile. Perhaps you could use this?