This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / include / asm-m32r / bug.h
1 #ifndef _M32R_BUG_H
2 #define _M32R_BUG_H
3
4 #define BUG()   do { \
5         printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
6 } while (0)
7
8 #define PAGE_BUG(page)  do { BUG(); } while (0)
9
10 #define BUG_ON(condition) \
11         do { if (unlikely((condition)!=0)) BUG(); } while(0)
12
13 #define WARN_ON(condition) do { \
14         if (unlikely((condition)!=0)) { \
15                 printk("Badness in %s at %s:%d\n", __FUNCTION__, \
16                 __FILE__, __LINE__); \
17                 dump_stack(); \
18         } \
19 } while (0)
20
21 #endif /* _M32R_BUG_H */
22