summaryrefslogtreecommitdiffstats
path: root/include/asm-generic
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2008-10-20 14:41:03 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-20 15:29:57 -0700
commitf6f286f33e843862c559bfea9281318c4cdec6b0 (patch)
treee03836de9b23d76994365657af06a8465db7acea /include/asm-generic
parent5f41b8cdc6ef33b3432cee36264d628a80398362 (diff)
downloadlinux-f6f286f33e843862c559bfea9281318c4cdec6b0.tar.gz
linux-f6f286f33e843862c559bfea9281318c4cdec6b0.tar.bz2
linux-f6f286f33e843862c559bfea9281318c4cdec6b0.zip
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 <arjan@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/bug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h
index 0f6dabd4b517..12c07c1866b2 100644
--- a/include/asm-generic/bug.h
+++ b/include/asm-generic/bug.h
@@ -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