Go to the documentation of this file.
26 #ifdef CONFIG_RUNTIME_DEBUG
28 #include <linux/kernel.h>
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)
42 #define db_verify(x, y) x
43 #define db_verify_warn(x, y) x