[PATCH] efi: Move error message to warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
Cc: linux-efi@xxxxxxxxxxxxxxx
Signed-off-by: Arshad Hussain <arshad.super@xxxxxxxxx>
Signed-off-by: Husein Bahrainwala <heseinzb@xxxxxxxxx>
---
 drivers/firmware/efi/libstub/arm64-stub.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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;
     kernel_memsize = kernel_size + (_end - _edata);
-- 
2.25.1



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux