summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c')
-rw-r--r--MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c b/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c
index 4646f18432..671c3332f9 100644
--- a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c
+++ b/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c
@@ -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);