bc027eadb9c3ede5257e0c582900dddc36589781
[linux-flexiantxendom0-3.2.10.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