diff --git a/MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf b/MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf index 78f5ea5508..11c7337cf8 100644 --- a/MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf +++ b/MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf @@ -45,5 +45,5 @@ [Protocols] - gEfiPrintProtocolGuid # PROTOCOL ALWAYS_CONSUMED + gEfiPrint2ProtocolGuid # PROTOCOL ALWAYS_CONSUMED diff --git a/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c b/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c index 2281115e97..1659327dc5 100644 --- a/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c +++ b/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c @@ -18,12 +18,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include -#include +#include #include #include -static EFI_PRINT_PROTOCOL *gPrintProtocol = NULL; +static EFI_PRINT2_PROTOCOL *gPrintProtocol = NULL; EFI_STATUS EFIAPI @@ -34,7 +34,7 @@ InternalLocatePrintProtocol ( if (gPrintProtocol == NULL) { Status = gBS->LocateProtocol ( - &gEfiPrintProtocolGuid, + &gEfiPrint2ProtocolGuid, NULL, (VOID **)&gPrintProtocol );