It is annoying that the dmesg buffer can overflow and loose messages
authorbluhm <bluhm@openbsd.org>
Thu, 23 Jun 2016 13:15:21 +0000 (13:15 +0000)
committerbluhm <bluhm@openbsd.org>
Thu, 23 Jun 2016 13:15:21 +0000 (13:15 +0000)
commitbdd0b010f760764bcd11184af241dfada2a448d5
tree0c35a1d1b5fa0b7bbec4db80f926cd0fe81d091b
parent3087d61cc08fccf59944c298574ab44bffe31f9b
It is annoying that the dmesg buffer can overflow and loose messages
undetected during debugging.  To make clear what happens, count the
dropped bytes and write message buffer full to syslogd.  This also
helps to have a reliable log system.
OK deraadt@ millert@ tedu@
sys/kern/subr_log.c
sys/sys/msgbuf.h