To improve backward compatibility, add gEfiPrint2ProtocolGuid and rename gEfiPrintPro...
authorqwang12 <qwang12@de2fecce-e211-0410-80a6-f3fac2684e05>
Tue, 2 Sep 2008 01:45:02 +0000 (01:45 +0000)
committerqwang12 <qwang12@de2fecce-e211-0410-80a6-f3fac2684e05>
Tue, 2 Sep 2008 01:45:02 +0000 (01:45 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@5771 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf
edk2/MdeModulePkg/Library/EdkDxePrintLib/PrintLib.c

index 78f5ea5..11c7337 100644 (file)
@@ -45,5 +45,5 @@
 \r
 \r
 [Protocols]\r
-  gEfiPrintProtocolGuid                         # PROTOCOL ALWAYS_CONSUMED\r
+  gEfiPrint2ProtocolGuid                         # PROTOCOL ALWAYS_CONSUMED\r
 \r
index 2281115..1659327 100644 (file)
@@ -18,12 +18,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include <Uefi.h>\r
 \r
-#include <Protocol/Print.h>\r
+#include <Protocol/Print2.h>\r
 \r
 #include <Library/PrintLib.h>\r
 #include <Library/UefiBootServicesTableLib.h>\r
 \r
-static EFI_PRINT_PROTOCOL  *gPrintProtocol = NULL;\r
+static EFI_PRINT2_PROTOCOL  *gPrintProtocol = NULL;\r
 \r
 EFI_STATUS\r
 EFIAPI\r
@@ -34,7 +34,7 @@ InternalLocatePrintProtocol (
 \r
   if (gPrintProtocol == NULL) {\r
     Status = gBS->LocateProtocol (\r
-                    &gEfiPrintProtocolGuid,\r
+                    &gEfiPrint2ProtocolGuid,\r
                     NULL,\r
                     (VOID **)&gPrintProtocol\r
                     );\r