24#define DPRINT_WARNING 1
25#define DPRINT_MEMORY 2
26#define DPRINT_FILESYSTEM 3
27#define DPRINT_INIFILE 4
31#define DPRINT_REGISTRY 8
32#define DPRINT_REACTOS 9
33#define DPRINT_LINUX 10
34#define DPRINT_HWDETECT 11
35#define DPRINT_WINDOWS 12
36#define DPRINT_PELOADER 13
37#define DPRINT_SCSIPORT 14
39#define DBG_CHANNELS_COUNT 16
54 #define FIXME_LEVEL 0x2
55 #define WARN_LEVEL 0x4
56 #define TRACE_LEVEL 0x8
58 #define MAX_LEVEL ERR_LEVEL | FIXME_LEVEL | WARN_LEVEL | TRACE_LEVEL
60 #define DBG_DEFAULT_CHANNEL(ch) static int DbgDefaultChannel = DPRINT_##ch
62 #define ERR_CH(ch, fmt, ...) DbgPrint2(DPRINT_##ch, ERR_LEVEL, __FILE__, __LINE__, fmt, ##__VA_ARGS__)
63 #define FIXME_CH(ch, fmt, ...) DbgPrint2(DPRINT_##ch, FIXME_LEVEL, __FILE__, __LINE__, fmt, ##__VA_ARGS__)
64 #define WARN_CH(ch, fmt, ...) DbgPrint2(DPRINT_##ch, WARN_LEVEL, __FILE__, __LINE__, fmt, ##__VA_ARGS__)
65 #define TRACE_CH(ch, fmt, ...) DbgPrint2(DPRINT_##ch, TRACE_LEVEL, __FILE__, __LINE__, fmt, ##__VA_ARGS__)
67 #define ERR(fmt, ...) DbgPrint2(DbgDefaultChannel, ERR_LEVEL, __FILE__, __LINE__, fmt, ##__VA_ARGS__)
68 #define FIXME(fmt, ...) DbgPrint2(DbgDefaultChannel, FIXME_LEVEL, __FILE__, __LINE__, fmt, ##__VA_ARGS__)
69 #define WARN(fmt, ...) DbgPrint2(DbgDefaultChannel, WARN_LEVEL, __FILE__, __LINE__, fmt, ##__VA_ARGS__)
70 #define TRACE(fmt, ...) DbgPrint2(DbgDefaultChannel, TRACE_LEVEL, __FILE__, __LINE__, fmt, ##__VA_ARGS__)
72 #define UNIMPLEMENTED DbgPrint("(%s:%d) WARNING: %s is UNIMPLEMENTED!\n", __FILE__, __LINE__, __FUNCTION__);
74 #define BugCheck(fmt, ...) do { DbgPrint("(%s:%d) Fatal Error in %s: " fmt, __FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__); for (;;); } while (0)
75 #define DbgDumpBuffer(mask, buf, len) DebugDumpBuffer(mask, buf, len)
88#define BREAKPOINT() __asm__ ("int $3");
89void INSTRUCTION_BREAKPOINT1(
unsigned long addr);
90void MEMORY_READWRITE_BREAKPOINT1(
unsigned long addr);
91void MEMORY_WRITE_BREAKPOINT1(
unsigned long addr);
92void INSTRUCTION_BREAKPOINT2(
unsigned long addr);
93void MEMORY_READWRITE_BREAKPOINT2(
unsigned long addr);
94void MEMORY_WRITE_BREAKPOINT2(
unsigned long addr);
95void INSTRUCTION_BREAKPOINT3(
unsigned long addr);
96void MEMORY_READWRITE_BREAKPOINT3(
unsigned long addr);
97void MEMORY_WRITE_BREAKPOINT3(
unsigned long addr);
98void INSTRUCTION_BREAKPOINT4(
unsigned long addr);
99void MEMORY_READWRITE_BREAKPOINT4(
unsigned long addr);
100void MEMORY_WRITE_BREAKPOINT4(
unsigned long addr);
106 #define DBG_DEFAULT_CHANNEL(ch)
108 #define ERR_CH(ch, fmt, ...)
109 #define FIXME_CH(ch, fmt, ...)
110 #define WARN_CH(ch, fmt, ...)
111 #define TRACE_CH(ch, fmt, ...)
113 #define ERR(fmt, ...)
114 #define FIXME(fmt, ...)
115 #define WARN(fmt, ...)
116 #define TRACE(fmt, ...)
118 #define UNIMPLEMENTED
120 #define DebugInit(DebugString)
121 #define BugCheck(fmt, ...)
122 #define DbgDumpBuffer(mask, buf, len)
123 #define DebugDisableScreenPort()
124 #define DbgParseDebugChannels(val)
148 EXIT_BOOTSERVICES_FAILURE,
@ FREELDR_IMAGE_CORRUPTION
@ MISSING_HARDWARE_REQUIREMENTS
ULONG_PTR BugCheckInfo[5]
void NTAPI FrLdrBugCheck(ULONG BugCode)
#define DbgParseDebugChannels(val)
#define DebugInit(DebugString)
VOID FrLdrBugCheckWithMessage(ULONG BugCode, PCHAR File, ULONG Line, PSTR Format,...)
#define DebugDisableScreenPort()
static CCHAR DebugString[256]
GLenum const GLvoid * addr
_In_ ULONG _In_ ULONG _In_ ULONG Length
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level