15#ifndef OC_DEBUG_LOG_LIB_H
16#define OC_DEBUG_LOG_LIB_H
18#include <Library/DebugLib.h>
22#define OC_HEX_LOWER(x) "0123456789ABCDEF"[((UINT32) (x) & 0x0FU)]
23#define OC_HEX_UPPER(x) "0123456789ABCDEF"[((UINT32) (x) & 0xF0U) >> 4U]
28#define OC_HUMAN_STRING(TextDevicePath) \
29 ((TextDevicePath) == NULL ? L"<nil>" : (TextDevicePath)[0] == '\0' ? L"<empty>" : (TextDevicePath))
34#ifndef DEBUG_BULK_INFO
35#define DEBUG_BULK_INFO (DEBUG_VERBOSE|DEBUG_INFO)
41#define RUNTIME_DEBUG(x) do { } while (0)
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
51 #error "Define target macro: OC_TARGET_<TARGET>!"
69 IN CONST CHAR16 *Message
82 IN CONST CHAR8 *Message,
83 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL
96 IN CONST CHAR8 *Message,
97 IN EFI_HANDLE
Handle OPTIONAL
111 IN CONST CHAR8 *Message,
DMG_SIZE_DEVICE_PATH Size
VOID DebugPrintDevicePathForHandle(IN UINTN ErrorLevel, IN CONST CHAR8 *Message, IN EFI_HANDLE Handle OPTIONAL)
VOID WaitForKeyPress(IN CONST CHAR16 *Message)
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