TianoCore EDK2 master
Loading...
Searching...
No Matches
BaseDebugPrintErrorLevelLib.c File Reference
#include <Base.h>
#include <Library/DebugPrintErrorLevelLib.h>
#include <Library/PcdLib.h>

Go to the source code of this file.

Functions

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

Detailed Description

Debug Print Error Level library instance that retrieves the current error level from PcdDebugPrintErrorLevel. This generic library instance does not support the setting of the global debug print error level mask for the platform.

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

Definition in file BaseDebugPrintErrorLevelLib.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 23 of file BaseDebugPrintErrorLevelLib.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 44 of file BaseDebugPrintErrorLevelLib.c.