]> Git Repo - J-u-boot.git/commitdiff
efi_loader: avoid writing message in Exit() boot service
authorHeinrich Schuchardt <[email protected]>
Tue, 26 Nov 2024 23:40:17 +0000 (00:40 +0100)
committerHeinrich Schuchardt <[email protected]>
Sun, 5 Jan 2025 01:30:47 +0000 (02:30 +0100)
We should not write messages in UEFI API functions. This may lead to
incorrect screen layout in UEFI application.

For single statements after if clause we don't need braces.

Reviewed-by: Ilias Apalodimas <[email protected]>
Signed-off-by: Heinrich Schuchardt <[email protected]>
lib/efi_loader/efi_boottime.c

index 080e7f78ae37a45d1e83566806b1fe2582160f2c..38b0af9d502736a1fb2c42a27945eec6e1695e3e 100644 (file)
@@ -3495,10 +3495,9 @@ static efi_status_t EFIAPI efi_exit(efi_handle_t image_handle,
        if (IS_ENABLED(CONFIG_EFI_TCG2_PROTOCOL)) {
                if (image_obj->image_type == IMAGE_SUBSYSTEM_EFI_APPLICATION) {
                        ret = efi_tcg2_measure_efi_app_exit();
-                       if (ret != EFI_SUCCESS) {
-                               log_warning("tcg2 measurement fails(0x%lx)\n",
-                                           ret);
-                       }
+                       if (ret != EFI_SUCCESS)
+                               log_debug("tcg2 measurement fails (0x%lx)\n",
+                                         ret);
                }
        }
 
This page took 0.029131 seconds and 4 git commands to generate.