Skip to content

Commit

Permalink
OpenDuet: Minor improvement to replacement HII services lib debug o/p
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebeaton committed Apr 21, 2024
1 parent 86ff5f3 commit 8385180
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions Library/OcHiiServicesLib/UefiHiiServicesLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,41 +79,31 @@ UefiHiiServicesLibConstructor (
// Retrieve the pointer to the UEFI HII String Protocol
//
Status = gBS->LocateProtocol (&gEfiHiiStringProtocolGuid, NULL, (VOID **)&gHiiString);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "UEFI HII String Protocol not present!\n"));
}
DEBUG ((DEBUG_INFO, "Locate UEFI HII String Protocol - %r\n", Status));

//
// Retrieve the pointer to the UEFI HII Database Protocol
//
Status = gBS->LocateProtocol (&gEfiHiiDatabaseProtocolGuid, NULL, (VOID **)&gHiiDatabase);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "UEFI HII Database Protocol not present!\n"));
}
DEBUG ((DEBUG_INFO, "Locate UEFI HII Database Protocol - %r\n", Status));

//
// Retrieve the pointer to the UEFI HII Config Routing Protocol
//
Status = gBS->LocateProtocol (&gEfiHiiConfigRoutingProtocolGuid, NULL, (VOID **)&gHiiConfigRouting);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "UEFI HII Config Routing Protocol not present!\n"));
}
DEBUG ((DEBUG_INFO, "Locate UEFI HII Config Routing Protocol - %r\n", Status));

//
// Retrieve the pointer to the optional UEFI HII Font Protocol
//
Status = gBS->LocateProtocol (&gEfiHiiFontProtocolGuid, NULL, (VOID **)&gHiiFont);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "UEFI HII Font Protocol not present\n"));
}
DEBUG ((DEBUG_INFO, "Locate UEFI HII Font Protocol - %r\n", Status));

//
// Retrieve the pointer to the optional UEFI HII Image Protocol
//
Status = gBS->LocateProtocol (&gEfiHiiImageProtocolGuid, NULL, (VOID **)&gHiiImage);
if (EFI_ERROR (Status)) {
DEBUG ((DEBUG_INFO, "UEFI HII Image Protocol not present\n"));
}
DEBUG ((DEBUG_INFO, "Locate UEFI HII Image Protocol - %r\n", Status));

return EFI_SUCCESS;
}

0 comments on commit 8385180

Please sign in to comment.