OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
OcDebugLogLib.h
Go to the documentation of this file.
1
15#ifndef OC_DEBUG_LOG_LIB_H
16#define OC_DEBUG_LOG_LIB_H
17
18#include <Library/DebugLib.h>
19#include <Protocol/OcLog.h>
21
22#define OC_HEX_LOWER(x) "0123456789ABCDEF"[((UINT32) (x) & 0x0FU)]
23#define OC_HEX_UPPER(x) "0123456789ABCDEF"[((UINT32) (x) & 0xF0U) >> 4U]
24
28#define OC_HUMAN_STRING(TextDevicePath) \
29 ((TextDevicePath) == NULL ? L"<nil>" : (TextDevicePath)[0] == '\0' ? L"<empty>" : (TextDevicePath))
30
34#ifndef DEBUG_BULK_INFO
35#define DEBUG_BULK_INFO (DEBUG_VERBOSE|DEBUG_INFO)
36#endif
37
41#define RUNTIME_DEBUG(x) do { } while (0)
42
46#if defined (OC_TARGET_DEBUG) || defined (OC_TARGET_NOOPT)
47#define DEBUG_POINTER(x) x
48#elif defined (OC_TARGET_RELEASE)
49#define DEBUG_POINTER(x) NULL
50#else
51 #error "Define target macro: OC_TARGET_<TARGET>!"
52#endif
53
57VOID
59 VOID
60 );
61
67VOID
69 IN CONST CHAR16 *Message
70 );
71
79VOID
81 IN UINTN ErrorLevel,
82 IN CONST CHAR8 *Message,
83 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL
84 );
85
93VOID
95 IN UINTN ErrorLevel,
96 IN CONST CHAR8 *Message,
97 IN EFI_HANDLE Handle OPTIONAL
98 );
99
108VOID
110 IN UINTN ErrorLevel,
111 IN CONST CHAR8 *Message,
112 IN UINT8 *Bytes,
113 IN UINTN Size
114 );
115
116#endif // OC_DEBUG_LOG_LIB_H
DMG_SIZE_DEVICE_PATH Size
VOID DebugPrintDevicePathForHandle(IN UINTN ErrorLevel, IN CONST CHAR8 *Message, IN EFI_HANDLE Handle OPTIONAL)
VOID DebugBreak(VOID)
VOID WaitForKeyPress(IN CONST CHAR16 *Message)
Definition DebugHelp.c:35
VOID DebugPrintHexDump(IN UINTN ErrorLevel, IN CONST CHAR8 *Message, IN UINT8 *Bytes, IN UINTN Size)
VOID DebugPrintDevicePath(IN UINTN ErrorLevel, IN CONST CHAR8 *Message, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL)
APPLE_EVENT_HANDLE Handle
Definition OcTypingLib.h:45