ReactOS 0.4.16-dev-2491-g3dc6630
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)
 
#define __STRING2__(x)   #x
 
#define __STRING__(x)   __STRING2__(x)
 
#define __STRLINE__   __STRING__(__LINE__)
 
#define __pragma(x)   _Pragma(#x)
 
#define _WARN(msg)   __pragma(message("WARNING! Line " __STRLINE__ ": " msg))
 

Enumerations

enum  _FRLDR_BUGCHECK_CODES {
  TEST_BUGCHECK , MISSING_HARDWARE_REQUIREMENTS , FREELDR_IMAGE_CORRUPTION , MEMORY_INIT_FAILURE ,
  ASSERT_FAILURE
}
 

Functions

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

Variables

charBugCodeStrings []
 
ULONG_PTR BugCheckInfo [5]
 

Macro Definition Documentation

◆ __pragma

#define __pragma (   x)    _Pragma(#x)

Definition at line 133 of file debug.h.

◆ __STRING2__

#define __STRING2__ (   x)    #x

Definition at line 128 of file debug.h.

◆ __STRING__

#define __STRING__ (   x)    __STRING2__(x)

Definition at line 129 of file debug.h.

◆ __STRLINE__

#define __STRLINE__   __STRING__(__LINE__)

Definition at line 130 of file debug.h.

◆ _WARN

#define _WARN (   msg)    __pragma(message("WARNING! Line " __STRLINE__ ": " msg))

Definition at line 135 of file debug.h.

◆ 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 
ASSERT_FAILURE 

Definition at line 153 of file debug.h.

154{
160#ifdef UEFIBOOT
161 EXIT_BOOTSERVICES_FAILURE,
162#endif
163};
@ TEST_BUGCHECK
Definition: debug.h:155
@ MEMORY_INIT_FAILURE
Definition: debug.h:158
@ ASSERT_FAILURE
Definition: debug.h:159
@ FREELDR_IMAGE_CORRUPTION
Definition: debug.h:157
@ MISSING_HARDWARE_REQUIREMENTS
Definition: debug.h:156

Function Documentation

◆ FrLdrBugCheck()

DECLSPEC_NORETURN void NTAPI FrLdrBugCheck ( ULONG  BugCode)

Definition at line 267 of file i386bug.c.

268{
269 FrLdrBugCheckEx(BugCode, 0, 0);
270}
static DECLSPEC_NORETURN void FrLdrBugCheckEx(ULONG BugCode, PCHAR File, ULONG Line)
Definition: i386bug.c:237

◆ FrLdrBugCheckWithMessage()

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

Variable Documentation

◆ BugCheckInfo

ULONG_PTR BugCheckInfo[5]
extern

Definition at line 566 of file debug.c.

Referenced by FrLdrBugCheckEx().

◆ BugCodeStrings

char* BugCodeStrings[]
extern

Definition at line 554 of file debug.c.

Referenced by FrLdrBugCheckEx(), and FrLdrBugCheckWithMessage().