Partial rewrite.
[linux-2.6/linux-mips.git] / include / asm-h8300 / bug.h
blob3b6f0102f12e1547c5c69792dc22c9a218cf0d09
1 #ifndef _H8300_BUG_H
2 #define _H8300_BUG_H
4 #define BUG() do { \
5 printk("%s(%d): kernel BUG!\n", __FILE__, __LINE__); \
6 } while (0)
8 #define PAGE_BUG(page) do { \
9 BUG(); \
10 } while (0)
12 #define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0)
14 #define WARN_ON(condition) do { \
15 if (unlikely((condition)!=0)) { \
16 printk("Badness in %s at %s:%d\n", __FUNCTION__, __FILE__, __LINE__); \
17 dump_stack(); \
18 } \
19 } while (0)
21 #endif