]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17c95318eb40d636c488ebf8f0d0a2c315847aca
tree517c0d9ecb32296fa1a9c217ed30c7041f3edbf2
parent68293dc8c216e0d4884695553a83e6236f8ca206
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