summaryrefslogtreecommitdiffstats
path: root/ArmPkg
diff options
context:
space:
mode:
authorBrendan Jackman <Brendan.JackMan@arm.com>2014-05-14 16:41:04 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2014-05-14 16:41:04 +0000
commit271ce4bd70953bf4ca5be7db9d7e65e470384896 (patch)
treee539f7848f997696464ed2280007cf69232d5e5e /ArmPkg
parent1aaa6f61a55a4db594d264ab8c0b0c9ddac1110e (diff)
downloadedk2-271ce4bd70953bf4ca5be7db9d7e65e470384896.tar.gz
edk2-271ce4bd70953bf4ca5be7db9d7e65e470384896.tar.bz2
edk2-271ce4bd70953bf4ca5be7db9d7e65e470384896.zip
ArmPkg/BdsLib/AArch64: Added more useful error messages when loading Linux
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Brendan Jackman <Brendan.JackMan@arm.com> Reviewed-By: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15528 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPkg')
-rw-r--r--ArmPkg/Library/BdsLib/AArch64/BdsLinuxLoader.c8
1 files changed, 4 insertions, 4 deletions
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;
}