ReactOS 0.4.15-dev-7788-g1ad9096
debug.h File Reference

Go to the source code of this file.

Macros

#define DPRINT_NONE   0
 
#define DPRINT_WARNING   1
 
#define DPRINT_MEMORY   2
 
#define DPRINT_FILESYSTEM   3
 
#define DPRINT_INIFILE   4
 
#define DPRINT_UI   5
 
#define DPRINT_DISK   6
 
#define DPRINT_CACHE   7
 
#define DPRINT_REGISTRY   8
 
#define DPRINT_REACTOS   9
 
#define DPRINT_LINUX   10
 
#define DPRINT_HWDETECT   11
 
#define DPRINT_WINDOWS   12
 
#define DPRINT_PELOADER   13
 
#define DPRINT_SCSIPORT   14
 
#define DPRINT_HEAP   15
 
#define DBG_CHANNELS_COUNT   16
 
#define DBG_DEFAULT_CHANNEL(ch)
 
#define ERR_CH(ch, fmt, ...)
 
#define FIXME_CH(ch, fmt, ...)
 
#define WARN_CH(ch, fmt, ...)
 
#define TRACE_CH(ch, fmt, ...)
 
#define ERR(fmt, ...)
 
#define FIXME(fmt, ...)
 
#define WARN(fmt, ...)
 
#define TRACE(fmt, ...)
 
#define UNIMPLEMENTED
 
#define DebugInit(FrLdrSectionId)
 
#define BugCheck(fmt, ...)
 
#define DbgDumpBuffer(mask, buf, len)
 
#define DebugDisableScreenPort()
 
#define DbgParseDebugChannels(val)
 

Enumerations

enum  _FRLDR_BUGCHECK_CODES { TEST_BUGCHECK , MISSING_HARDWARE_REQUIREMENTS , FREELDR_IMAGE_CORRUPTION , MEMORY_INIT_FAILURE }
 

Functions

void NTAPI FrLdrBugCheck (ULONG BugCode)
 
VOID FrLdrBugCheckWithMessage (ULONG BugCode, PCHAR File, ULONG Line, PSTR Format,...)
 

Variables

charBugCodeStrings []
 
ULONG_PTR BugCheckInfo [5]
 

Macro Definition Documentation

◆ BugCheck

#define BugCheck (   fmt,
  ... 
)

Definition at line 118 of file debug.h.

◆ DBG_CHANNELS_COUNT

#define DBG_CHANNELS_COUNT   16

Definition at line 39 of file debug.h.

◆ DBG_DEFAULT_CHANNEL

#define DBG_DEFAULT_CHANNEL (   ch)

Definition at line 103 of file debug.h.

◆ DbgDumpBuffer

#define DbgDumpBuffer (   mask,
  buf,
  len 
)

Definition at line 119 of file debug.h.

◆ DbgParseDebugChannels

#define DbgParseDebugChannels (   val)

Definition at line 121 of file debug.h.

◆ DebugDisableScreenPort

#define DebugDisableScreenPort ( )

Definition at line 120 of file debug.h.

◆ DebugInit

#define DebugInit (   FrLdrSectionId)

Definition at line 117 of file debug.h.

◆ DPRINT_CACHE

#define DPRINT_CACHE   7

Definition at line 30 of file debug.h.

◆ DPRINT_DISK

#define DPRINT_DISK   6

Definition at line 29 of file debug.h.

◆ DPRINT_FILESYSTEM

#define DPRINT_FILESYSTEM   3

Definition at line 26 of file debug.h.

◆ DPRINT_HEAP

#define DPRINT_HEAP   15

Definition at line 38 of file debug.h.

◆ DPRINT_HWDETECT

#define DPRINT_HWDETECT   11

Definition at line 34 of file debug.h.

◆ DPRINT_INIFILE

#define DPRINT_INIFILE   4

Definition at line 27 of file debug.h.

◆ DPRINT_LINUX

#define DPRINT_LINUX   10

Definition at line 33 of file debug.h.

◆ DPRINT_MEMORY

#define DPRINT_MEMORY   2

Definition at line 25 of file debug.h.

◆ DPRINT_NONE

#define DPRINT_NONE   0

Definition at line 23 of file debug.h.

◆ DPRINT_PELOADER

#define DPRINT_PELOADER   13

Definition at line 36 of file debug.h.

◆ DPRINT_REACTOS

#define DPRINT_REACTOS   9

Definition at line 32 of file debug.h.

◆ DPRINT_REGISTRY

#define DPRINT_REGISTRY   8

Definition at line 31 of file debug.h.

◆ DPRINT_SCSIPORT

#define DPRINT_SCSIPORT   14

Definition at line 37 of file debug.h.

◆ DPRINT_UI

#define DPRINT_UI   5

Definition at line 28 of file debug.h.

◆ DPRINT_WARNING

#define DPRINT_WARNING   1

Definition at line 24 of file debug.h.

◆ DPRINT_WINDOWS

#define DPRINT_WINDOWS   12

Definition at line 35 of file debug.h.

◆ ERR

#define ERR (   fmt,
  ... 
)

Definition at line 110 of file debug.h.

◆ ERR_CH

#define ERR_CH (   ch,
  fmt,
  ... 
)

Definition at line 105 of file debug.h.

◆ FIXME

#define FIXME (   fmt,
  ... 
)

Definition at line 111 of file debug.h.

◆ FIXME_CH

#define FIXME_CH (   ch,
  fmt,
  ... 
)

Definition at line 106 of file debug.h.

◆ TRACE

#define TRACE (   fmt,
  ... 
)

Definition at line 113 of file debug.h.

◆ TRACE_CH

#define TRACE_CH (   ch,
  fmt,
  ... 
)

Definition at line 108 of file debug.h.

◆ UNIMPLEMENTED

#define UNIMPLEMENTED

Definition at line 115 of file debug.h.

◆ WARN

#define WARN (   fmt,
  ... 
)

Definition at line 112 of file debug.h.

◆ WARN_CH

#define WARN_CH (   ch,
  fmt,
  ... 
)

Definition at line 107 of file debug.h.

Enumeration Type Documentation

◆ _FRLDR_BUGCHECK_CODES

Enumerator
TEST_BUGCHECK 
MISSING_HARDWARE_REQUIREMENTS 
FREELDR_IMAGE_CORRUPTION 
MEMORY_INIT_FAILURE 

Definition at line 138 of file debug.h.

139{
144#ifdef UEFIBOOT
145 EXIT_BOOTSERVICES_FAILURE,
146#endif
147};
@ TEST_BUGCHECK
Definition: debug.h:140
@ MEMORY_INIT_FAILURE
Definition: debug.h:143
@ FREELDR_IMAGE_CORRUPTION
Definition: debug.h:142
@ MISSING_HARDWARE_REQUIREMENTS
Definition: debug.h:141

Function Documentation

◆ FrLdrBugCheck()

void NTAPI FrLdrBugCheck ( ULONG  BugCode)

Definition at line 260 of file i386bug.c.

261{
262 FrLdrBugCheckEx(BugCode, 0, 0);
263}
void NTAPI FrLdrBugCheckEx(ULONG BugCode, PCHAR File, ULONG Line)
Definition: i386bug.c:231

◆ FrLdrBugCheckWithMessage()

VOID FrLdrBugCheckWithMessage ( ULONG  BugCode,
PCHAR  File,
ULONG  Line,
PSTR  Format,
  ... 
)

Variable Documentation

◆ BugCheckInfo

ULONG_PTR BugCheckInfo[5]
extern

Definition at line 531 of file debug.c.

Referenced by FrLdrBugCheckEx().

◆ BugCodeStrings

char* BugCodeStrings[]
extern

Definition at line 520 of file debug.c.

Referenced by FrLdrBugCheckEx(), and FrLdrBugCheckWithMessage().