diff options
| author | Ingo Molnar <mingo@elte.hu> | 2008-10-12 09:17:14 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2008-10-12 09:17:14 -0400 |
| commit | 620f2efcdc5c7a2db68da41bc3df3cf9a718024e (patch) | |
| tree | b1a0411e2588953777d0b10245b12044c33cef54 /include/asm-mips/debug.h | |
| parent | 04944b793e18ece23f63c0252646b310c1845940 (diff) | |
| parent | fd048088306656824958e7783ffcee27e241b361 (diff) | |
Merge branch 'linus' into x86/xsave
Diffstat (limited to 'include/asm-mips/debug.h')
| -rw-r--r-- | include/asm-mips/debug.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/include/asm-mips/debug.h b/include/asm-mips/debug.h deleted file mode 100644 index 1fd5a2b39445..000000000000 --- a/include/asm-mips/debug.h +++ /dev/null | |||
| @@ -1,48 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Debug macros for run-time debugging. | ||
| 3 | * Turned on/off with CONFIG_RUNTIME_DEBUG option. | ||
| 4 | * | ||
| 5 | * Copyright (C) 2001 MontaVista Software Inc. | ||
| 6 | * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify it | ||
| 9 | * under the terms of the GNU General Public License as published by the | ||
| 10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
| 11 | * option) any later version. | ||
| 12 | * | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef _ASM_DEBUG_H | ||
| 16 | #define _ASM_DEBUG_H | ||
| 17 | |||
| 18 | |||
| 19 | /* | ||
| 20 | * run-time macros for catching spurious errors. Eable CONFIG_RUNTIME_DEBUG in | ||
| 21 | * kernel hacking config menu to use them. | ||
| 22 | * | ||
| 23 | * Use them as run-time debugging aid. NEVER USE THEM AS ERROR HANDLING CODE!!! | ||
| 24 | */ | ||
| 25 | |||
| 26 | #ifdef CONFIG_RUNTIME_DEBUG | ||
| 27 | |||
| 28 | #include <linux/kernel.h> | ||
| 29 | |||
| 30 | #define db_assert(x) if (!(x)) { \ | ||
| 31 | panic("assertion failed at %s:%d: %s", __FILE__, __LINE__, #x); } | ||
| 32 | #define db_warn(x) if (!(x)) { \ | ||
| 33 | printk(KERN_WARNING "warning at %s:%d: %s", __FILE__, __LINE__, #x); } | ||
| 34 | #define db_verify(x, y) db_assert(x y) | ||
| 35 | #define db_verify_warn(x, y) db_warn(x y) | ||
| 36 | #define db_run(x) do { x; } while (0) | ||
| 37 | |||
| 38 | #else | ||
| 39 | |||
| 40 | #define db_assert(x) | ||
| 41 | #define db_warn(x) | ||
| 42 | #define db_verify(x, y) x | ||
| 43 | #define db_verify_warn(x, y) x | ||
| 44 | #define db_run(x) | ||
| 45 | |||
| 46 | #endif | ||
| 47 | |||
| 48 | #endif /* _ASM_DEBUG_H */ | ||
