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
This commit is contained in:
qwang12 2008-09-02 01:45:02 +00:00
parent cb19869a5c
commit 0ed0c867c7
2 changed files with 4 additions and 4 deletions

View File

@ -45,5 +45,5 @@
[Protocols]
gEfiPrintProtocolGuid # PROTOCOL ALWAYS_CONSUMED
gEfiPrint2ProtocolGuid # PROTOCOL ALWAYS_CONSUMED

View File

@ -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
);