summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-02 01:45:02 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2008-09-02 01:45:02 +0000
commit0ed0c867c7de292cffa76687d705019312a8d022 (patch)
tree97408dbbda97e6a078215bfbc5ba69ed24caf3d2 /MdeModulePkg
parentcb19869a5c1f407a60f22db527c30c88032528a1 (diff)
downloadedk2-platforms-0ed0c867c7de292cffa76687d705019312a8d022.tar.xz
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
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf2
-rw-r--r--MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c6
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 <Uefi.h>
-#include <Protocol/Print.h>
+#include <Protocol/Print2.h>
#include <Library/PrintLib.h>
#include <Library/UefiBootServicesTableLib.h>
-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
);