| Submitter | Benjamin Herrenschmidt |
|---|---|
| Date | Oct. 20, 2008, 11:13 p.m. |
| Message ID | <1224544418.7654.182.camel@pasglop> |
| Download | mbox | patch |
| Permalink | /patch/5155/ |
| State | Accepted |
| Delegated to: | Benjamin Herrenschmidt |
| Headers | show |
Comments
Patch
diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 0f6dabd..12c07c1 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