mirror of https://github.com/acidanthera/audk.git
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:
parent
cb19869a5c
commit
0ed0c867c7
|
@ -45,5 +45,5 @@
|
||||||
|
|
||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
gEfiPrintProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
gEfiPrint2ProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
||||||
|
|
||||||
|
|
|
@ -18,12 +18,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||||
|
|
||||||
#include <Uefi.h>
|
#include <Uefi.h>
|
||||||
|
|
||||||
#include <Protocol/Print.h>
|
#include <Protocol/Print2.h>
|
||||||
|
|
||||||
#include <Library/PrintLib.h>
|
#include <Library/PrintLib.h>
|
||||||
#include <Library/UefiBootServicesTableLib.h>
|
#include <Library/UefiBootServicesTableLib.h>
|
||||||
|
|
||||||
static EFI_PRINT_PROTOCOL *gPrintProtocol = NULL;
|
static EFI_PRINT2_PROTOCOL *gPrintProtocol = NULL;
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
|
@ -34,7 +34,7 @@ InternalLocatePrintProtocol (
|
||||||
|
|
||||||
if (gPrintProtocol == NULL) {
|
if (gPrintProtocol == NULL) {
|
||||||
Status = gBS->LocateProtocol (
|
Status = gBS->LocateProtocol (
|
||||||
&gEfiPrintProtocolGuid,
|
&gEfiPrint2ProtocolGuid,
|
||||||
NULL,
|
NULL,
|
||||||
(VOID **)&gPrintProtocol
|
(VOID **)&gPrintProtocol
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue