]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.c
2 Debug Print Error Level library instance that retrieves the current error
3 level from PcdDebugPrintErrorLevel. This generic library instance does not
4 support the setting of the global debug print error level mask for the platform.
6 Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
7 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php.
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #include <Library/DebugPrintErrorLevelLib.h>
19 #include <Library/PcdLib.h>
22 Returns the debug print error level mask for the current module.
24 @return Debug print error level mask for the current module.
29 GetDebugPrintErrorLevel (
34 // Retrieve the current debug print error level mask from PcdDebugPrintErrorLevel.
36 return PcdGet32 (PcdDebugPrintErrorLevel
);
40 Sets the global debug print error level mask fpr the entire platform.
42 @param ErrorLevel Global debug print error level.
44 @retval TRUE The debug print error level mask was sucessfully set.
45 @retval FALSE The debug print error level mask could not be set.
50 SetDebugPrintErrorLevel (
55 // This library uinstance does not support setting the global debug print error