MdeModulePkg: Remove UefiBootServicesTableLib dependency from DxePrintLibPrint2Protocol.
The use of the BootServicesTableLib inside the DxePrintLibPrint2Protocol allows for potential circular library dependency. Signed-off-by: jcarsey Reviewed-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12273 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -24,7 +24,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#include <Library/PrintLib.h>
|
||||
|
||||
#include <Library/BaseLib.h>
|
||||
#include <Library/UefiBootServicesTableLib.h>
|
||||
#include <Library/DebugLib.h>
|
||||
|
||||
EFI_PRINT2_PROTOCOL *mPrint2Protocol = NULL;
|
||||
@ -50,11 +49,11 @@ PrintLibConstructor (
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
Status = gBS->LocateProtocol (
|
||||
&gEfiPrint2ProtocolGuid,
|
||||
NULL,
|
||||
(VOID**) &mPrint2Protocol
|
||||
);
|
||||
Status = SystemTable->BootServices->LocateProtocol (
|
||||
&gEfiPrint2ProtocolGuid,
|
||||
NULL,
|
||||
(VOID**) &mPrint2Protocol
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
ASSERT (mPrint2Protocol != NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user