]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
9p: Reduce object size with CONFIG_NET_9P_DEBUG
authorJoe Perches <joe@perches.com>
Mon, 28 Nov 2011 18:40:46 +0000 (10:40 -0800)
committerEric Van Hensbergen <ericvh@gmail.com>
Thu, 5 Jan 2012 16:51:44 +0000 (10:51 -0600)
commit5d3851530d6d68564e4e0ce04d0547d4d106fc72
treed47065fcc1f93f00070afe597a98ab185fd13859
parenta0ea787b027b79cf2e01c6758e5246db06520158
9p: Reduce object size with CONFIG_NET_9P_DEBUG

Reduce object size by deduplicating formats.

Use vsprintf extension %pV.
Rename P9_DPRINTK uses to p9_debug, align arguments.
Add function for _p9_debug and macro to add __func__.
Add missing "\n"s to p9_debug uses.
Remove embedded function names as p9_debug adds it.
Remove P9_EPRINTK macro and convert use to pr_<level>.
Add and use pr_fmt and pr_<level>.

$ size fs/9p/built-in.o*
   text    data     bss     dec     hex filename
  62133     984   16000   79117   1350d fs/9p/built-in.o.new
  67342     984   16928   85254   14d06 fs/9p/built-in.o.old
$ size net/9p/built-in.o*
   text    data     bss     dec     hex filename
  88792    4148   22024  114964   1c114 net/9p/built-in.o.new
  94072    4148   23232  121452   1da6c net/9p/built-in.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
20 files changed:
fs/9p/cache.c
fs/9p/fid.c
fs/9p/v9fs.c
fs/9p/vfs_addr.c
fs/9p/vfs_dentry.c
fs/9p/vfs_dir.c
fs/9p/vfs_file.c
fs/9p/vfs_inode.c
fs/9p/vfs_inode_dotl.c
fs/9p/vfs_super.c
fs/9p/xattr.c
include/net/9p/9p.h
net/9p/client.c
net/9p/error.c
net/9p/mod.c
net/9p/protocol.c
net/9p/trans_fd.c
net/9p/trans_rdma.c
net/9p/trans_virtio.c
net/9p/util.c