KTR_VERBOSE's logging was being done outside 'if (ktr_buf[cpu]) {'
authorSascha Wildner <swildner@dragonflybsd.org>
Sat, 25 Mar 2006 21:28:07 +0000 (21:28 +0000)
committerSascha Wildner <swildner@dragonflybsd.org>
Sat, 25 Mar 2006 21:28:07 +0000 (21:28 +0000)
commitb4cb74b51a130325c1e994da07e6e81f0b6a999b
treecfc342d8d3301dcc3520bf2275b9a14324b3c625
parentaa73238b4c561fdc0764a2672f6d60318573e7d2
KTR_VERBOSE's logging was being done outside 'if (ktr_buf[cpu]) {'
but actually didn't make sense there. If ktr_buf is empty, there's
nothing to log and entry is not initialized.

Instead, do an early return when ktr_buf[cpu] is empty.
sys/kern/kern_ktr.c