4 /* This header file defines all debugging constants and macros, and declares
5 * some variables. Certain debugging features redefine standard constants
6 * and macros. Therefore, this header file should be included after the
7 * other kernel headers.
11 #include <minix/debug.h>
14 /* Enable prints such as
15 * . send/receive failed due to deadlock or dead source or dead destination
17 * . bogus message pointer
18 * . kernel call number not allowed by this process
20 * Of course the call still fails, but nothing is printed if these warnings
23 #define DEBUG_ENABLE_IPC_WARNINGS 1
24 #define DEBUG_STACKTRACE 1
25 #define DEBUG_TIME_LOCKS 1
28 #define DEBUG_SANITYCHECKS 0
30 /* Verbose messages. */
35 #define VF_SCHEDULING (1L << 1)
36 #define VF_PICKPROC (1L << 2)
38 #define TRACE(code, statement) if(verboseflags & code) { printf("%s:%d: ", __FILE__, __LINE__); statement }
41 #define TRACE(code, statement)
44 #define NOT_REACHABLE do { \
45 panic("NOT_REACHABLE at %s:%d", __FILE__, __LINE__); \
49 #define NOT_IMPLEMENTED do { \
50 panic("NOT_IMPLEMENTED at %s:%d", __FILE__, __LINE__); \
53 #ifdef CONFIG_BOOT_VERBOSE
54 #define BOOT_VERBOSE(x) x
56 #define BOOT_VERBOSE(x)
60 #define DEBUG_PRINT(params, level) do { \
61 if (verboseboot >= (level)) printf params; } while (0)
62 #define DEBUGBASIC(params) DEBUG_PRINT(params, VERBOSEBOOT_BASIC)
63 #define DEBUGMAX(params) DEBUG_PRINT(params, VERBOSEBOOT_MAX)