diff options
author | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-02 18:27:56 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-02 18:27:56 +0000 |
commit | 352892190a06226f154d482e6d61981f91f60e22 (patch) | |
tree | de73dc78ec826b6ffb57358c64eb9ea15d58e811 /MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c | |
parent | 0cdda8d6f0b48bb1f998c1e7487877331c5cae8c (diff) | |
download | edk2-platforms-352892190a06226f154d482e6d61981f91f60e22.tar.xz |
MdeModulePkg: Remove UefiBootServicesTableLib dependency from DxePrintLibPrint2Protocol.
The use of the BootServicesTableLib inside the DxePrintLibPrint2Protocol
allows for potential circular library dependency.
Signed-off-by: jcarsey
Reviewed-by: jljusten
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12273 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c')
-rw-r--r-- | MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c b/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c index 4646f18432..671c3332f9 100644 --- a/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c +++ b/MdeModulePkg/Library/DxePrintLibPrint2Protocol/PrintLib.c @@ -24,7 +24,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include <Library/PrintLib.h>
#include <Library/BaseLib.h>
-#include <Library/UefiBootServicesTableLib.h>
#include <Library/DebugLib.h>
EFI_PRINT2_PROTOCOL *mPrint2Protocol = NULL;
@@ -50,11 +49,11 @@ PrintLibConstructor ( {
EFI_STATUS Status;
- Status = gBS->LocateProtocol (
- &gEfiPrint2ProtocolGuid,
- NULL,
- (VOID**) &mPrint2Protocol
- );
+ Status = SystemTable->BootServices->LocateProtocol (
+ &gEfiPrint2ProtocolGuid,
+ NULL,
+ (VOID**) &mPrint2Protocol
+ );
ASSERT_EFI_ERROR (Status);
ASSERT (mPrint2Protocol != NULL);
|