OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
DebugPrint.c File Reference
#include <Library/OcDebugLogLib.h>
#include <Library/DevicePathLib.h>
#include <Library/MemoryAllocationLib.h>

Go to the source code of this file.

Functions

VOID DebugPrintDevicePath (IN UINTN ErrorLevel, IN CONST CHAR8 *Message, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL)
 
VOID DebugPrintDevicePathForHandle (IN UINTN ErrorLevel, IN CONST CHAR8 *Message, IN EFI_HANDLE Handle OPTIONAL)
 
VOID DebugPrintHexDump (IN UINTN ErrorLevel, IN CONST CHAR8 *Message, IN UINT8 *Bytes, IN UINTN Size)
 

Detailed Description

Copyright (C) 2019, vit9696. All rights reserved.

All rights reserved.

This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file DebugPrint.c.

Function Documentation

◆ DebugPrintDevicePath()

VOID DebugPrintDevicePath ( IN UINTN ErrorLevel,
IN CONST CHAR8 * Message,
IN EFI_DEVICE_PATH_PROTOCOL *DevicePath OPTIONAL )

Print Device Path to log.

Parameters
[in]ErrorLevelDebug error level.
[in]MessagePrefixed message.
[in]DevicePathDevice path to print.

Definition at line 20 of file DebugPrint.c.

◆ DebugPrintDevicePathForHandle()

VOID DebugPrintDevicePathForHandle ( IN UINTN ErrorLevel,
IN CONST CHAR8 * Message,
IN EFI_HANDLE Handle OPTIONAL )

Print Device Path corresponding to EFI Handle to log.

Parameters
[in]ErrorLevelDebug error level.
[in]MessagePrefixed message.
[in]HandleHandle corresponding to Device path to print.

Definition at line 44 of file DebugPrint.c.

◆ DebugPrintHexDump()

VOID DebugPrintHexDump ( IN UINTN ErrorLevel,
IN CONST CHAR8 * Message,
IN UINT8 * Bytes,
IN UINTN Size )

Print hex dump to log.

Parameters
[in]ErrorLevelDebug error level.
[in]MessagePrefixed message.
[in]BytesByte sequence.
[in]SizeByte sequence size.

Definition at line 65 of file DebugPrint.c.