Skip to content

Commit 2ebaf18

Browse files
committed
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>
1 parent f214549 commit 2ebaf18

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/char/ipmi/ipmi_msghandler.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
* Copyright 2002 MontaVista Software Inc.
1212
*/
1313

14-
#define pr_fmt(fmt) "%s" fmt, "IPMI message handler: "
15-
#define dev_fmt pr_fmt
14+
#define pr_fmt(fmt) "IPMI message handler: " fmt
15+
#define dev_fmt(fmt) pr_fmt(fmt)
1616

1717
#include <linux/module.h>
1818
#include <linux/errno.h>

0 commit comments

Comments
 (0)