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