ktr - add KTR_COND_LOG
authorMihai Carabas <mihai.carabas@gmail.com>
Wed, 22 Aug 2012 13:07:18 +0000 (13:07 +0000)
committerAlex Hornung <alex@alexhornung.com>
Wed, 22 Aug 2012 15:06:55 +0000 (15:06 +0000)
commitb0bbd261455dd9cdb5575610d5fe8a3975289ed8
tree1e4534f4a750de32376e9a9e068f9089e59ed852
parentc6e8b6c15bcace495c5c80fb97509bcc7adaee4c
ktr - add KTR_COND_LOG

 * KTR_COND_LOG provides conditional logging; the second parameter passed
   in is a condition which determines whether the entry is logged or
   not.

 * It provides a neater way to log conditionally than having to wrap a
   KTR in an if, which may then end up being empty if KTR is disbled.
share/man/man9/ktr.9
sys/sys/ktr.h