ReactOS 0.4.16-dev-91-g764881a
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(DebugString)
 
#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 121 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 106 of file debug.h.

◆ DbgDumpBuffer

#define DbgDumpBuffer (   mask,
  buf,
  len 
)

Definition at line 122 of file debug.h.

◆ DbgParseDebugChannels

#define DbgParseDebugChannels (   val)

Definition at line 124 of file debug.h.

◆ DebugDisableScreenPort

#define DebugDisableScreenPort ( )

Definition at line 123 of file debug.h.

◆ DebugInit

#define DebugInit (   DebugString)

Definition at line 120 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 113 of file debug.h.

◆ ERR_CH

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

Definition at line 108 of file debug.h.

◆ FIXME

#define FIXME (   fmt,
  ... 
)

Definition at line 114 of file debug.h.

◆ FIXME_CH

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

Definition at line 109 of file debug.h.

◆ TRACE

#define TRACE (   fmt,
  ... 
)

Definition at line 116 of file debug.h.

◆ TRACE_CH

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

Definition at line 111 of file debug.h.

◆ UNIMPLEMENTED

#define UNIMPLEMENTED

Definition at line 118 of file debug.h.

◆ WARN

#define WARN (   fmt,
  ... 
)

Definition at line 115 of file debug.h.

◆ WARN_CH

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

Definition at line 110 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 141 of file debug.h.

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

Function Documentation

◆ FrLdrBugCheck()

void NTAPI FrLdrBugCheck ( ULONG  BugCode)

Definition at line 261 of file i386bug.c.

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

◆ FrLdrBugCheckWithMessage()

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

Variable Documentation

◆ BugCheckInfo

ULONG_PTR BugCheckInfo[5]
extern

Definition at line 527 of file debug.c.

Referenced by FrLdrBugCheckEx().

◆ BugCodeStrings

char* BugCodeStrings[]
extern

Definition at line 516 of file debug.c.

Referenced by FrLdrBugCheckEx(), and FrLdrBugCheckWithMessage().