diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-02 01:45:02 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-09-02 01:45:02 +0000 |
commit | 0ed0c867c7de292cffa76687d705019312a8d022 (patch) | |
tree | 97408dbbda97e6a078215bfbc5ba69ed24caf3d2 /MdeModulePkg/Library/EdkDxePrintLib | |
parent | cb19869a5c1f407a60f22db527c30c88032528a1 (diff) | |
download | edk2-0ed0c867c7de292cffa76687d705019312a8d022.zip edk2-0ed0c867c7de292cffa76687d705019312a8d022.tar.gz edk2-0ed0c867c7de292cffa76687d705019312a8d022.tar.bz2 |
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/Library/EdkDxePrintLib')
-rw-r--r-- | MdeModulePkg/Library/EdkDxePrintLib/EdkDxePrintLib.inf | 2 | ||||
-rw-r--r-- | 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 78f5ea5..11c7337 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 2281115..1659327 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
);
|