git: sys/vfs/hammer: Add hpanic() [1/2]

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Thu Sep 24 07:46:35 PDT 2015


commit 903fdd054164f0bbbaa7585799cb5a2fd380159b
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Sep 12 07:14:03 2015 +0900

    sys/vfs/hammer: Add hpanic() [1/2]
    
    This commit does the following.
    
    1. Add a macro hpanic() which is a wrapper for panic()
       that embed the following prefix.
       "function_name: ..."
    2. Replace raw panic() calls that have above prefix with
       hpanic().
    3. Fix some wrong function name literals using __func__.

Summary of changes:
 sys/vfs/hammer/hammer.h             |  3 +++
 sys/vfs/hammer/hammer_blockmap.c    |  3 +--
 sys/vfs/hammer/hammer_btree.c       |  8 ++++----
 sys/vfs/hammer/hammer_inode.c       | 10 ++++------
 sys/vfs/hammer/hammer_io.c          | 10 +++++-----
 sys/vfs/hammer/hammer_object.c      | 14 +++++++++-----
 sys/vfs/hammer/hammer_ondisk.c      |  3 +--
 sys/vfs/hammer/hammer_redo.c        |  9 +++------
 sys/vfs/hammer/hammer_subs.c        | 15 +++++++--------
 sys/vfs/hammer/hammer_transaction.c |  2 +-
 sys/vfs/hammer/hammer_undo.c        |  2 +-
 sys/vfs/hammer/hammer_vnops.c       |  2 +-
 12 files changed, 40 insertions(+), 41 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/903fdd054164f0bbbaa7585799cb5a2fd380159b


-- 
DragonFly BSD source repository



More information about the Commits mailing list