Solange wrote:
I am doing kernel development, and I would like to print lots of messages to
the console. I use vstrlog(), which eventually calls cprintf().

This is problematic, because syslog message queue becomes overflown, and some
of my messages get lost. Does anyone know how to tell the syslog to flush its
queue before accepting new messages?



Have you looked at the cmn_err(9F) function? If you just
want to print stuff from kernelspace to syslog, you can
use


cmn_err(CE_NOTE, "this is my message to syslog");


and it works quite nicely.


best regards,
James C. McPherson
--
Solaris Datapath Engineering
Data Management Group
Sun Microsystems
_______________________________________________
opensolaris-code mailing list
[email protected]
https://opensolaris.org:444/mailman/listinfo/opensolaris-code

Reply via email to