]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.c
MdePkg/BaseSafeIntLib: fix undefined behavior in SafeInt64Add()
[mirror_edk2.git] / MdePkg / Library / BaseDebugPrintErrorLevelLib / BaseDebugPrintErrorLevelLib.c
CommitLineData
2891fc8b 1/** @file\r
2 Debug Print Error Level library instance that retrieves the current error \r
3 level from PcdDebugPrintErrorLevel. This generic library instance does not \r
4 support the setting of the global debug print error level mask for the platform.\r
5\r
6 Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
7 This program and the accompanying materials\r
8 are licensed and made available under the terms and conditions of the BSD License\r
9 which accompanies this distribution. The full text of the license may be found at\r
10 http://opensource.org/licenses/bsd-license.php.\r
11\r
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14\r
15**/\r
16\r
17#include <Base.h>\r
18#include <Library/DebugPrintErrorLevelLib.h>\r
19#include <Library/PcdLib.h>\r
20\r
21/**\r
22 Returns the debug print error level mask for the current module.\r
23\r
24 @return Debug print error level mask for the current module.\r
25\r
26**/\r
27UINT32\r
28EFIAPI\r
29GetDebugPrintErrorLevel (\r
30 VOID\r
31 )\r
32{\r
33 //\r
34 // Retrieve the current debug print error level mask from PcdDebugPrintErrorLevel.\r
35 //\r
36 return PcdGet32 (PcdDebugPrintErrorLevel);\r
37}\r
38\r
39/**\r
40 Sets the global debug print error level mask fpr the entire platform.\r
a77badbb
ED
41 \r
42 @param ErrorLevel Global debug print error level.\r
43 \r
44 @retval TRUE The debug print error level mask was sucessfully set.\r
45 @retval FALSE The debug print error level mask could not be set.\r
2891fc8b 46\r
47**/\r
48BOOLEAN\r
49EFIAPI\r
50SetDebugPrintErrorLevel (\r
51 UINT32 ErrorLevel\r
52 )\r
53{\r
54 //\r
55 // This library uinstance does not support setting the global debug print error\r
56 // level mask.\r
57 //\r
58 return FALSE;\r
59}\r