From 0ed0c867c7de292cffa76687d705019312a8d022 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Tue, 2 Sep 2008 01:45:02 +0000 Subject: [PATCH] To improve backward compatibility, add gEfiPrint2ProtocolGuid and rename gEfiPrintProtocolGuid to the previous GUID value used in EDK I. gEfiPrint2ProtocolGuid is a enhanced version of gEfiPrintProtocolGuid. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5771 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf | 2 +- MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 );