This is not a programming solution:
1. edit your /etc/syslog.conf file to turn off all of the syslog messages that display there. This does not stop other kernel output.
2. For that you can play with klogd errorlevel settings. Start klogd with something like
Code:
klogd -c 4