fix WARN() for PPC]
PATCH 1/1 fix WARN() for PPC]
-------- Forwarded Message --------
From: Arjan van de Ven <[email protected]>
To: [email protected]
Cc: [email protected], [email protected], [email protected], Benjamin Herrenschmidt <[email protected]>
Subject: [PATCH] fix WARN() for PPC
Date: Mon, 20 Oct 2008 14:50:56 -0700
From: Arjan van de Ven <[email protected]>
Date: Mon, 20 Oct 2008 14:41:03 -0700
Subject: [PATCH] fix WARN() for PPC
powerpc doesn't use the generic WARN_ON infrastructure. The newly introduced WARN() as a result didn't print the message, this patch adds the printk for this specific case.
Signed-off-by Arjan van de Ven <[email protected]>
--- include/asm-generic/bug.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/asm-generic/bug.h +1 -1
@@ -41,7 +41,7 @@ extern void warn_slowpath(const char *file, const int line,#define __WARN () warn_on_slowpath(__FILE__, __LINE__) #define __WARN_printf(arg...) warn_slowpath(__FILE__, __LINE__, arg)#else -#define __WARN_printf(arg...) __WARN() +#define __WARN_printf(arg...) do { printk(arg); __WARN(); } while (0)#endif #ifndef WARN_ON
Signature · 1 line
1.5.5.1