ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-parisc / bug.h
1 #ifndef _PARISC_BUG_H
2 #define _PARISC_BUG_H
3
4 /*
5  * Tell the user there is some problem.
6  */
7 #define BUG() do { \
8         extern void dump_stack(void); \
9         printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
10         dump_stack(); \
11 } while (0)
12
13 #define BUG_ON(condition) do { \
14         if (unlikely((condition)!=0)) \
15                 BUG(); \
16 } while(0)
17
18 #define PAGE_BUG(page) do { \
19         BUG(); \
20 } while (0)
21
22 #define WARN_ON(condition) do { \
23         if (unlikely((condition)!=0)) { \
24                 printk("Badness in %s at %s:%d\n", __FUNCTION__, __FILE__, __LINE__); \
25                 dump_stack(); \
26         } \
27 } while (0)
28
29 #endif