git: ktr - add KTR_COND_LOG

Alex Hornung alexh at crater.dragonflybsd.org
Wed Aug 22 07:07:39 PDT 2012


commit b0bbd261455dd9cdb5575610d5fe8a3975289ed8
Author: Mihai Carabas <mihai.carabas at gmail.com>
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
       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.

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

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b0bbd261455dd9cdb5575610d5fe8a3975289ed8


-- 
DragonFly BSD source repository





More information about the Commits mailing list