ubifs: Add logging functions for ubifs_msg, ubifs_err and ubifs_warn
authorJoe Perches <joe@perches.com>
Tue, 23 Feb 2016 12:13:49 +0000 (04:13 -0800)
committerRichard Weinberger <richard@nod.at>
Sun, 20 Mar 2016 20:36:05 +0000 (21:36 +0100)
commit3e7f2c5104a01f5385f64d45372aadaab898a656
treea1c125e5bc3b0bcac3e9fb230450eebda2ee5282
parent1e75a9f34a5ed5902707fb74b468356c55142b71
ubifs: Add logging functions for ubifs_msg, ubifs_err and ubifs_warn

The existing logging macros are fairly large and converting the
macros to functions make the object code smaller.

Use %pV and __builtin_return_address(0) as appropriate.

$ size fs/ubifs/built-in.o*
   text    data     bss     dec     hex filename
 575831  309688  161312 1046831   ff92f fs/ubifs/built-in.o.allyesconfig.new
 622457  312872  161120 1096449  10bb01 fs/ubifs/built-in.o.allyesconfig.old
 223785     640     644  225069   36f2d fs/ubifs/built-in.o.defconfig.new
 251873     640     644  253157   3dce5 fs/ubifs/built-in.o.defconfig.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/Makefile
fs/ubifs/misc.c [new file with mode: 0644]
fs/ubifs/ubifs.h