jfs: Update jfs_error
authorJoe Perches <joe@perches.com>
Tue, 4 Jun 2013 23:39:15 +0000 (16:39 -0700)
committerDave Kleikamp <dave.kleikamp@oracle.com>
Wed, 5 Jun 2013 19:47:19 +0000 (14:47 -0500)
commiteb8630d7d2fd13589e6a7a3ae2fe1f75f867fbed
tree16a5040af9b8df061385de9e0ab8e13e51790ddf
parent21d1101f013c12d1dd78cfdf263d619c80975b47
jfs: Update jfs_error

Use a more current logging style.

Add __printf format and argument verification.

Remove embedded function names from formats.
Add %pf, __builtin_return_address(0) to jfs_error.
Add newlines to formats for kernel style consistency.
(One format already had an erroneous newline)
Coalesce formats and align arguments.

Object size reduced ~1KiB.

$ size fs/jfs/built-in.o*
   text    data     bss     dec     hex filename
 201891   35488   63936  301315   49903 fs/jfs/built-in.o.new
 202821   35488   64192  302501   49da5 fs/jfs/built-in.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
12 files changed:
fs/jfs/jfs_dmap.c
fs/jfs/jfs_dtree.c
fs/jfs/jfs_extent.c
fs/jfs/jfs_imap.c
fs/jfs/jfs_metapage.c
fs/jfs/jfs_superblock.h
fs/jfs/jfs_txnmgr.c
fs/jfs/jfs_xtree.c
fs/jfs/namei.c
fs/jfs/resize.c
fs/jfs/super.c
fs/jfs/xattr.c