ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-h8300 / bug.h
1 #ifndef _H8300_BUG_H
2 #define _H8300_BUG_H
3
4 #define BUG() do { \
5   printk("%s(%d): kernel BUG!\n", __FILE__, __LINE__); \
6 } while (0)
7
8 #define PAGE_BUG(page) do { \
9          BUG(); \
10 } while (0)
11
12 #define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0)
13
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)
20
21 #endif