21#define MAX_DEBUG_MESSAGE_LENGTH 0x100
78 AsciiVSPrint (Buffer,
sizeof (Buffer), Format, VaListMarker);
79 printf (
"%s", Buffer);
109 AsciiBSPrint (Buffer,
sizeof (Buffer), Format, BaseListMarker);
110 printf (
"%s", Buffer);
142 printf (
"ASSERT: %s(%d): %s\n", FileName, (INT32)(UINT32)LineNumber, Description);
147 if ((
PcdGet8 (PcdDebugPropertyMask) & DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED) != 0) {
149 }
else if ((
PcdGet8 (PcdDebugPropertyMask) & DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED) != 0) {
179 ASSERT (Buffer !=
NULL);
184 return SetMem (Buffer, Length,
PcdGet8 (PcdDebugClearMemoryValue));
203 return (BOOLEAN)((
PcdGet8 (PcdDebugPropertyMask) & DEBUG_PROPERTY_DEBUG_ASSERT_ENABLED) != 0);
222 return (BOOLEAN)((
PcdGet8 (PcdDebugPropertyMask) & DEBUG_PROPERTY_DEBUG_PRINT_ENABLED) != 0);
241 return (BOOLEAN)((
PcdGet8 (PcdDebugPropertyMask) & DEBUG_PROPERTY_DEBUG_CODE_ENABLED) != 0);
260 return (BOOLEAN)((
PcdGet8 (PcdDebugPropertyMask) & DEBUG_PROPERTY_CLEAR_MEMORY_ENABLED) != 0);
278 return (BOOLEAN)((ErrorLevel &
PcdGet32 (PcdFixedDebugPrintErrorLevel)) != 0);
VOID EFIAPI CpuDeadLoop(VOID)
VOID EFIAPI CpuBreakpoint(VOID)
VOID *EFIAPI SetMem(OUT VOID *Buffer, IN UINTN Length, IN UINT8 Value)
VOID EFIAPI DebugAssert(IN CONST CHAR8 *FileName, IN UINTN LineNumber, IN CONST CHAR8 *Description)
VOID EFIAPI DebugVPrint(IN UINTN ErrorLevel, IN CONST CHAR8 *Format, IN VA_LIST VaListMarker)
BOOLEAN EFIAPI DebugPrintLevelEnabled(IN CONST UINTN ErrorLevel)
VOID EFIAPI DebugBPrint(IN UINTN ErrorLevel, IN CONST CHAR8 *Format, IN BASE_LIST BaseListMarker)
VOID *EFIAPI DebugClearMemory(OUT VOID *Buffer, IN UINTN Length)
#define MAX_DEBUG_MESSAGE_LENGTH
VOID EFIAPI DebugPrint(IN UINTN ErrorLevel, IN CONST CHAR8 *Format,...)
BOOLEAN EFIAPI DebugCodeEnabled(VOID)
BOOLEAN EFIAPI DebugClearMemoryEnabled(VOID)
BOOLEAN EFIAPI DebugPrintEnabled(VOID)
BOOLEAN EFIAPI DebugAssertEnabled(VOID)
UINTN EFIAPI AsciiBSPrint(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString, IN BASE_LIST Marker)
UINTN EFIAPI AsciiVSPrint(OUT CHAR8 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR8 *FormatString, IN VA_LIST Marker)
#define VA_START(Marker, Parameter)
#define PcdGet8(TokenName)
#define PcdGet32(TokenName)