11#ifndef REDFISH_DEBUG_LIB_H_
12#define REDFISH_DEBUG_LIB_H_
23#define DEBUG_REDFISH_NETWORK DEBUG_MANAGEABILITY
24#define DEBUG_REDFISH_HOST_INTERFACE DEBUG_MANAGEABILITY
25#define DEBUG_REDFISH_PLATFORM_CONFIG DEBUG_MANAGEABILITY
32#define DEBUG_REDFISH_COMPONENT_PLATFORM_CONFIG_DXE 0x00000001
34#define DEBUG_REDFISH(DebugCategory, ...) \
36 if (!DebugPrintEnabled()) { \
39 if (!DebugRedfishComponentEnabled (DebugCategory)) { \
42 DEBUG ((DEBUG_MANAGEABILITY, ##__VA_ARGS__)); \
56 IN UINT64 DebugCategory
88 IN EDKII_JSON_VALUE JsonValue
106 IN REDFISH_PAYLOAD Payload
EFI_STATUS DumpRedfishValue(IN UINTN ErrorLevel, IN EDKII_REDFISH_VALUE *RedfishValue)
EFI_STATUS DumpJsonValue(IN UINTN ErrorLevel, IN EDKII_JSON_VALUE JsonValue)
EFI_STATUS DumpHttpStatusCode(IN UINTN ErrorLevel, IN EFI_HTTP_STATUS_CODE HttpStatusCode)
EFI_STATUS DumpBuffer(IN UINTN ErrorLevel, IN UINT8 *Buffer, IN UINTN BufferSize)
EFI_STATUS DumpRedfishPayload(IN UINTN ErrorLevel, IN REDFISH_PAYLOAD Payload)
BOOLEAN DebugRedfishComponentEnabled(IN UINT64 DebugCategory)
EFI_STATUS DumpRedfishResponse(IN CONST CHAR8 *Message, IN UINTN ErrorLevel, IN REDFISH_RESPONSE *Response)
EFI_STATUS DumpIpv4Address(IN UINTN ErrorLevel, IN EFI_IPv4_ADDRESS *Ipv4Address)