diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-09-12 16:53:41 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-09-19 13:16:06 +0200 |
commit | 78b85286f073092b53ec405b9d9eebd3f49b44f6 (patch) | |
tree | 6344d499b3fad5bc6a06b2a53d649b8858788dd9 /cpukit/libfs/src/jffs2/include/asm/bug.h | |
parent | JFFS2: Import from eCos (diff) | |
download | rtems-78b85286f073092b53ec405b9d9eebd3f49b44f6.tar.bz2 |
JFFS2: Update Linux compatibility layer
Modify compatbility layer for RTEMS. Add support for Linux 3.11 based
JFFS2.
Diffstat (limited to 'cpukit/libfs/src/jffs2/include/asm/bug.h')
-rw-r--r-- | cpukit/libfs/src/jffs2/include/asm/bug.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/libfs/src/jffs2/include/asm/bug.h b/cpukit/libfs/src/jffs2/include/asm/bug.h index 060eb27830..190e8cf367 100644 --- a/cpukit/libfs/src/jffs2/include/asm/bug.h +++ b/cpukit/libfs/src/jffs2/include/asm/bug.h @@ -1,6 +1,10 @@ #ifndef __ASM_BUG_H__ #define __ASM_BUG_H__ -#define BUG() do { diag_printf("BUG() at %s %d\n", __FILE__, __LINE__); *(int *)0=0; } while (0) +#include <assert.h> + +#define BUG() assert(0) + +#define WARN_ON(condition) do { } while (0) #endif /* __ASM_BUG_H__ */ |