Skip to content

Commit

Permalink
ipmi: Fix pr_fmt to avoid compilation issues
Browse files Browse the repository at this point in the history
[ Upstream commit 2ebaf18 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
cminyard authored and gregkh committed Jun 9, 2022
1 parent fa390c8 commit eb7a71b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/char/ipmi/ipmi_msghandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit eb7a71b

Please sign in to comment.