TianoCore EDK2 master
Loading...
Searching...
No Matches
DebugPrintErrorLevelLibHob.c File Reference
#include <Base.h>
#include <Uefi.h>
#include <PiDxe.h>
#include <Library/PcdLib.h>
#include <Library/HobLib.h>
#include <Guid/DebugPrintErrorLevel.h>
#include <Library/DebugPrintErrorLevelLib.h>
#include <UniversalPayload/UniversalPayload.h>

Go to the source code of this file.

Functions

UINT32 EFIAPI GetDebugPrintErrorLevel (VOID)
 
BOOLEAN EFIAPI SetDebugPrintErrorLevel (UINT32 ErrorLevel)
 

Variables

STATIC UINT32 gDebugPrintErrorLevel
 
STATIC BOOLEAN gDebugPrintErrorLevelInitialized = FALSE
 

Detailed Description

Debug Print Error Level library instance that retrieves the DebugPrintErrorLevel from bootloader.

Copyright (c) 2022, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DebugPrintErrorLevelLibHob.c.

Function Documentation

◆ GetDebugPrintErrorLevel()

UINT32 EFIAPI GetDebugPrintErrorLevel ( VOID  )

Returns the debug print error level mask for the current module.

Returns
Debug print error level mask for the current module.

Definition at line 30 of file DebugPrintErrorLevelLibHob.c.

◆ SetDebugPrintErrorLevel()

BOOLEAN EFIAPI SetDebugPrintErrorLevel ( UINT32  ErrorLevel)

Sets the global debug print error level mask fpr the entire platform.

Parameters
ErrorLevelGlobal debug print error level.
Return values
TRUEThe debug print error level mask was sucessfully set.
FALSEThe debug print error level mask could not be set.

Definition at line 75 of file DebugPrintErrorLevelLibHob.c.

Variable Documentation

◆ gDebugPrintErrorLevel

STATIC UINT32 gDebugPrintErrorLevel

Definition at line 19 of file DebugPrintErrorLevelLibHob.c.

◆ gDebugPrintErrorLevelInitialized

STATIC BOOLEAN gDebugPrintErrorLevelInitialized = FALSE

Definition at line 20 of file DebugPrintErrorLevelLibHob.c.