ipmi: msghandler: Add and use pr_fmt and dev_fmt, remove PFX
authorJoe Perches <joe@perches.com>
Wed, 9 May 2018 15:15:47 +0000 (08:15 -0700)
committerCorey Minyard <cminyard@mvista.com>
Tue, 18 Sep 2018 21:15:33 +0000 (16:15 -0500)
commit445e2cbda928a3523c1c1da76788d19df52611c8
tree517c0d9ecb32296fa1a9c217ed30c7041f3edbf2
parent05c3d056086a6217a77937b7fa0df35ec75715e6
ipmi: msghandler: Add and use pr_fmt and dev_fmt, remove PFX

Standardize the prefixing of output messages using the pr_fmt and dev_fmt
mechanisms instead of a separate #define PFX

Miscellanea:

o Because this message prefix is very long, use a non-standard define
  of #define pr_fmt(fmt) "%s" fmt, "IPMI message handler: "
  which removes ~170 bytes of object code in an x86-64 defconfig with ipmi
  (with even more object code reduction on 32 bit compilations)

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/ipmi_msghandler.c