commit d053aa8aea2cf66699944def54faed89c76881b3 Author: Tomohiro Kusumi <kusumi.tomoh...@gmail.com> Date: Sat Sep 12 03:06:24 2015 +0900
sys/vfs/hammer: Change hkprintf() to macro and add variants [1/2] This commit does the following. 1. Remove an inline function hkprintf(). 2. Add a macro version of hkprintf() and its variants that embed the following prefix. "HAMMER: ..." "HAMMER(label) ..." 3. Replace raw kprintf() calls that have above prefix with newly added macros. hkprintf() macro doesn't use hammer_debug_debug flag that was used by the inline function version of hkprintf(), but this doesn't make much difference from the way hkprintf() and hammer_debug_debug have been used. Summary of changes: sys/vfs/hammer/hammer.h | 16 +++- sys/vfs/hammer/hammer_blockmap.c | 4 +- sys/vfs/hammer/hammer_btree.c | 2 +- sys/vfs/hammer/hammer_cursor.c | 2 +- sys/vfs/hammer/hammer_dedup.c | 2 +- sys/vfs/hammer/hammer_flusher.c | 10 +-- sys/vfs/hammer/hammer_inode.c | 6 +- sys/vfs/hammer/hammer_ioctl.c | 6 +- sys/vfs/hammer/hammer_object.c | 9 ++- sys/vfs/hammer/hammer_ondisk.c | 8 +- sys/vfs/hammer/hammer_reblock.c | 9 +-- sys/vfs/hammer/hammer_recover.c | 168 +++++++++++++++++---------------------- sys/vfs/hammer/hammer_subs.c | 12 --- sys/vfs/hammer/hammer_vfsops.c | 25 +++--- sys/vfs/hammer/hammer_vnops.c | 9 +-- 15 files changed, 128 insertions(+), 160 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d053aa8aea2cf66699944def54faed89c76881b3 -- DragonFly BSD source repository