diff mbox series

efi: Move error message to warning

Message ID CAKsu7qySyxVLMTjf9FG5=g1f0oP_CV61Ae-NunFK5MH-7iE8hg@mail.gmail.com
State New
Headers show
Series efi: Move error message to warning | expand

Commit Message

arshad hussain Jan. 31, 2022, 5:43 a.m. UTC
Error message "...kernel image not aligned on 64k boundary"
does not seem to be a real error as it does not
cause any functional issue or stops the system from
booting or working. Move this "error" to "warning"
as this error is not handled at the moment. Also,
watching "warn" message instead of "ERROR" calms
the end-user.

Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: linux-efi@vger.kernel.org
Signed-off-by: Arshad Hussain <arshad.super@gmail.com>
Signed-off-by: Husein Bahrainwala <heseinzb@gmail.com>
---
 drivers/firmware/efi/libstub/arm64-stub.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

     kernel_memsize = kernel_size + (_end - _edata);
diff mbox series

Patch

diff --git a/drivers/firmware/efi/libstub/arm64-stub.c
b/drivers/firmware/efi/libstub/arm64-stub.c
index 2363fee92..5ed09be49 100644
--- a/drivers/firmware/efi/libstub/arm64-stub.c
+++ b/drivers/firmware/efi/libstub/arm64-stub.c
@@ -120,8 +120,8 @@  efi_status_t handle_kernel_image(unsigned long *image_addr,
         efi_err("FIRMWARE BUG: efi_loaded_image_t::image_base has
bogus value\n");

     if (!IS_ALIGNED((u64)_text, EFI_KIMG_ALIGN))
-        efi_err("FIRMWARE BUG: kernel image not aligned on %ldk boundary\n",
-            EFI_KIMG_ALIGN >> 10);
+        efi_warn("FIRMWARE BUG: kernel image not aligned on %ldk boundary\n",
+             EFI_KIMG_ALIGN >> 10);

     kernel_size = _edata - _text;