From: Brendan Jackman Date: Wed, 14 May 2014 16:41:04 +0000 (+0000) Subject: ArmPkg/BdsLib/AArch64: Added more useful error messages when loading Linux X-Git-Tag: edk2-stable201903~11462 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=271ce4bd70953bf4ca5be7db9d7e65e470384896 ArmPkg/BdsLib/AArch64: Added more useful error messages when loading Linux Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman Reviewed-By: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15528 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/ArmPkg/Library/BdsLib/AArch64/BdsLinuxLoader.c b/ArmPkg/Library/BdsLib/AArch64/BdsLinuxLoader.c index 3e72baefd9..af113a1fc5 100644 --- a/ArmPkg/Library/BdsLib/AArch64/BdsLinuxLoader.c +++ b/ArmPkg/Library/BdsLib/AArch64/BdsLinuxLoader.c @@ -1,6 +1,6 @@ /** @file * -* Copyright (c) 2011-2013, ARM Limited. All rights reserved. +* Copyright (c) 2011-2014, ARM Limited. All rights reserved. * * This program and the accompanying materials * are licensed and made available under the terms and conditions of the BSD License @@ -227,7 +227,7 @@ BdsBootLinuxFdt ( LinuxImage = LINUX_KERNEL_MAX_OFFSET; Status = BdsLoadImage (LinuxKernelDevicePath, AllocateMaxAddress, &LinuxImage, &LinuxImageSize); if (EFI_ERROR(Status)) { - Print (L"ERROR: Did not find Linux kernel.\n"); + Print (L"ERROR: Did not find Linux kernel (%r).\n", Status); return Status; } } @@ -244,7 +244,7 @@ BdsBootLinuxFdt ( Status = BdsLoadImage (InitrdDevicePath, AllocateAnyPages, &InitrdImageBase, &InitrdImageBaseSize); } if (EFI_ERROR (Status)) { - Print (L"ERROR: Did not find initrd image.\n"); + Print (L"ERROR: Did not find initrd image (%r).\n", Status); goto EXIT_FREE_LINUX; } @@ -264,7 +264,7 @@ BdsBootLinuxFdt ( FdtBlobBase = LINUX_KERNEL_MAX_OFFSET; Status = BdsLoadImage (FdtDevicePath, AllocateMaxAddress, &FdtBlobBase, &FdtBlobSize); if (EFI_ERROR(Status)) { - Print (L"ERROR: Did not find Device Tree blob.\n"); + Print (L"ERROR: Did not find Device Tree blob (%r).\n", Status); goto EXIT_FREE_INITRD; }