diff options
author | Eric Sandeen <sandeen@sandeen.net> | 2007-07-10 21:09:47 -0400 |
---|---|---|
committer | Tim Shimmin <tes@chook.melbourne.sgi.com> | 2007-07-14 01:41:24 -0400 |
commit | 3a59c94c4b48878c6af047cdfc8c137d0fa7a0f0 (patch) | |
tree | 6945590171040dfa6eba6335fd8312a9fbf0baf1 /fs/xfs/xfs_bmap.h | |
parent | b11f94d537e6b69f13770143fd7ded3d09fdbaab (diff) |
[XFS] Clean up function name handling in tracing code
Remove the hardcoded "fnames" for tracing, and just embed them in tracing
macros via __FUNCTION__. Kills a lot of #ifdefs too.
SGI-PV: 967353
SGI-Modid: xfs-linux-melb:xfs-kern:29099a
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_bmap.h')
-rw-r--r-- | fs/xfs/xfs_bmap.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bmap.h b/fs/xfs/xfs_bmap.h index 4f24c7e39b31..524b1c9d5246 100644 --- a/fs/xfs/xfs_bmap.h +++ b/fs/xfs/xfs_bmap.h | |||
@@ -144,12 +144,14 @@ extern ktrace_t *xfs_bmap_trace_buf; | |||
144 | */ | 144 | */ |
145 | void | 145 | void |
146 | xfs_bmap_trace_exlist( | 146 | xfs_bmap_trace_exlist( |
147 | char *fname, /* function name */ | 147 | const char *fname, /* function name */ |
148 | struct xfs_inode *ip, /* incore inode pointer */ | 148 | struct xfs_inode *ip, /* incore inode pointer */ |
149 | xfs_extnum_t cnt, /* count of entries in list */ | 149 | xfs_extnum_t cnt, /* count of entries in list */ |
150 | int whichfork); /* data or attr fork */ | 150 | int whichfork); /* data or attr fork */ |
151 | #define XFS_BMAP_TRACE_EXLIST(ip,c,w) \ | ||
152 | xfs_bmap_trace_exlist(__FUNCTION__,ip,c,w) | ||
151 | #else | 153 | #else |
152 | #define xfs_bmap_trace_exlist(f,ip,c,w) | 154 | #define XFS_BMAP_TRACE_EXLIST(ip,c,w) |
153 | #endif | 155 | #endif |
154 | 156 | ||
155 | /* | 157 | /* |