mtd: ubi: Add logging functions ubi_msg, ubi_warn and ubi_err
authorJoe Perches <joe@perches.com>
Thu, 25 Feb 2016 17:25:20 +0000 (09:25 -0800)
committerRichard Weinberger <richard@nod.at>
Sun, 20 Mar 2016 20:36:05 +0000 (21:36 +0100)
commit58d303def2a1fbfb5c794bafe7da54b900d9694e
treebc37bae8e9f784bd9f47375e474ff3c6c750cfbf
parent3e7f2c5104a01f5385f64d45372aadaab898a656
mtd: ubi: Add logging functions ubi_msg, ubi_warn and ubi_err

Using logging functions instead of macros can reduce overall object size.

$ size drivers/mtd/ubi/built-in.o*
   text    data     bss     dec     hex filename
 271620  163364   73696  508680   7c308 drivers/mtd/ubi/built-in.o.allyesconfig.new
 287638  165380   73504  526522   808ba drivers/mtd/ubi/built-in.o.allyesconfig.old
  87728    3780     504   92012   1676c drivers/mtd/ubi/built-in.o.defconfig.new
  97084    3780     504  101368   18bf8 drivers/mtd/ubi/built-in.o.defconfig.old

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/misc.c
drivers/mtd/ubi/ubi.h