1) Update PeiDxeDebugLibReportStatusCode to use DebugPrintErrorLevelLib instead of the PcdDebugPrintErrorLevel PCD.
2) Add default mappings for the DebugPrintErrorLevelLib to the DSC file for this package.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11368
6f19259b-4bc3-4df7-8a09-
765794883524
#\r
# This file is used to build all modules in IntelFrameworkModulePkg.\r
#\r
#\r
# This file is used to build all modules in IntelFrameworkModulePkg.\r
#\r
-#Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+#Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>\r
#This program and the accompanying materials are licensed and made available under \r
#the terms and conditions of the BSD License that accompanies this distribution. \r
#The full text of the license may be found at\r
#This program and the accompanying materials are licensed and made available under \r
#the terms and conditions of the BSD License that accompanies this distribution. \r
#The full text of the license may be found at\r
\r
[LibraryClasses]\r
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
\r
[LibraryClasses]\r
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
+ DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf \r
BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
Note that if the debug message length is larger than the maximum allowable\r
record length, then the debug message will be ignored directly.\r
\r
Note that if the debug message length is larger than the maximum allowable\r
record length, then the debug message will be ignored directly.\r
\r
- Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/ReportStatusCodeLib.h>\r
#include <Library/PcdLib.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/ReportStatusCodeLib.h>\r
#include <Library/PcdLib.h>\r
+#include <Library/DebugPrintErrorLevelLib.h>\r
\r
/**\r
Prints a debug message to the debug output device if the specified error level is enabled.\r
\r
\r
/**\r
Prints a debug message to the debug output device if the specified error level is enabled.\r
\r
- If any bit in ErrorLevel is also set in PcdDebugPrintErrorLevel, then print \r
- the message specified by Format and the associated variable argument list to \r
- the debug output device.\r
+ If any bit in ErrorLevel is also set in DebugPrintErrorLevelLib function \r
+ GetDebugPrintErrorLevel (), then print the message specified by Format and the \r
+ associated variable argument list to the debug output device.\r
\r
If Format is NULL, then ASSERT().\r
\r
\r
If Format is NULL, then ASSERT().\r
\r
//\r
// Check driver Debug Level value and global debug level\r
//\r
//\r
// Check driver Debug Level value and global debug level\r
//\r
- if ((ErrorLevel & PcdGet32 (PcdDebugPrintErrorLevel)) == 0) {\r
+ if ((ErrorLevel & GetDebugPrintErrorLevel ()) == 0) {\r
# Debug Library based on report status code library\r
#\r
# Debug Library for PEIMs and DXE drivers that sends debug messages to ReportStatusCode\r
# Debug Library based on report status code library\r
#\r
# Debug Library for PEIMs and DXE drivers that sends debug messages to ReportStatusCode\r
-# Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
#\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
ReportStatusCodeLib\r
BaseMemoryLib\r
BaseLib\r
ReportStatusCodeLib\r
BaseMemoryLib\r
BaseLib\r
+ DebugPrintErrorLevelLib\r
- gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel\r
gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue\r
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask\r
\r
gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue\r
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask\r
\r