git: ktr - add KTR_COND_LOG

Alex Hornung alexh at
Wed Aug 22 07:07:39 PDT 2012

commit b0bbd261455dd9cdb5575610d5fe8a3975289ed8
Author: Mihai Carabas <mihai.carabas at>
Date:   Wed Aug 22 13:07:18 2012 +0000

    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
     * 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.

Summary of changes:
 share/man/man9/ktr.9 |   22 ++++++++++++++++++++--
 sys/sys/ktr.h        |   21 +++++++++++++++++++++
 2 files changed, 41 insertions(+), 2 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list