Skip to contentSkip to conversation

TAKE 967353 - cleanup function name handling for debug code

DISCUSSION David Chinner 1 participant 1 message Jul 9, 2007

lore
Share & tools
lore
#0 lore raw

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.

Date:  Mon Jul  9 15:43:22 AEST 2007
Workarea:  chook.melbourne.sgi.com:/build/dgc/isms/2.6.x-xfs
Inspected by:  [email protected]

The following file(s) were checked into:
longdrop.melbourne.sgi.com:/isms/linux/2.6.x-xfs-melb

Modid: xfs-linux-melb:xfs-kern:29099a fs/xfs/xfs_bmap_btree.c - 1.161 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_bmap_btree.c.diff?r1=text&tr1=1.161&r2=text&tr2=1.160&f=h
- Use __FUNCTION__ rather than hardcoded fnames for tracing.

fs/xfs/xfs_inode.c - 1.467 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_inode.c.diff?r1=text&tr1=1.467&r2=text&tr2=1.466&f=h
- Use __FUNCTION__ rather than hardcoded fnames for tracing.

fs/xfs/xfs_alloc.c - 1.187 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_alloc.c.diff?r1=text&tr1=1.187&r2=text&tr2=1.186&f=h
- Use __FUNCTION__ rather than hardcoded fnames for tracing.

fs/xfs/xfs_bmap.h - 1.99 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_bmap.h.diff?r1=text&tr1=1.99&r2=text&tr2=1.98&f=h
- Use __FUNCTION__ rather than hardcoded fnames for tracing.

fs/xfs/xfs_bmap.c - 1.372 - changed
http://oss.sgi.com/cgi-bin/cvsweb.cgi/xfs-linux/xfs_bmap.c.diff?r1=text&tr1=1.372&r2=text&tr2=1.371&f=h
- Use __FUNCTION__ rather than hardcoded fnames for tracing.