diff options
author | Corey Minyard <cminyard@mvista.com> | 2022-04-15 07:23:32 -0500 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2022-05-12 10:00:04 -0500 |
commit | 2ebaf18a0b7fb764bba6c806af99fe868cee93de (patch) | |
tree | 226b50dc3a98abc031d651b69084d2b24dbdc378 | |
parent | f214549d717310f795c20db9497db3938116399d (diff) | |
download | linux-2ebaf18a0b7fb764bba6c806af99fe868cee93de.tar.gz linux-2ebaf18a0b7fb764bba6c806af99fe868cee93de.tar.bz2 linux-2ebaf18a0b7fb764bba6c806af99fe868cee93de.zip |
ipmi: Fix pr_fmt to avoid compilation issues
The was it was wouldn't work in some situations, simplify it. What was
there was unnecessary complexity.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
-rw-r--r-- | drivers/char/ipmi/ipmi_msghandler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c index 5d033fadba6a..7c7f71e656bd 100644 --- a/drivers/char/ipmi/ipmi_msghandler.c +++ b/drivers/char/ipmi/ipmi_msghandler.c @@ -11,8 +11,8 @@ * Copyright 2002 MontaVista Software Inc. */ -#define pr_fmt(fmt) "%s" fmt, "IPMI message handler: " -#define dev_fmt pr_fmt +#define pr_fmt(fmt) "IPMI message handler: " fmt +#define dev_fmt(fmt) pr_fmt(fmt) #include <linux/module.h> #include <linux/errno.h> |