]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/BdsLib/AArch64: Added more useful error messages when loading Linux
authorBrendan Jackman <Brendan.JackMan@arm.com>
Wed, 14 May 2014 16:41:04 +0000 (16:41 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 14 May 2014 16:41:04 +0000 (16:41 +0000)
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

ArmPkg/Library/BdsLib/AArch64/BdsLinuxLoader.c

index 3e72baefd9d2d565d391648f49212b4851efcb2d..af113a1fc54a136e941f7d99b4bdda19e98765a6 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 *\r
-*  Copyright (c) 2011-2013, ARM Limited. All rights reserved.\r
+*  Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
 *\r
 *  This program and the accompanying materials\r
 *  are licensed and made available under the terms and conditions of the BSD License\r
@@ -227,7 +227,7 @@ BdsBootLinuxFdt (
     LinuxImage = LINUX_KERNEL_MAX_OFFSET;\r
     Status = BdsLoadImage (LinuxKernelDevicePath, AllocateMaxAddress, &LinuxImage, &LinuxImageSize);\r
     if (EFI_ERROR(Status)) {\r
-      Print (L"ERROR: Did not find Linux kernel.\n");\r
+      Print (L"ERROR: Did not find Linux kernel (%r).\n", Status);\r
       return Status;\r
     }\r
   }\r
@@ -244,7 +244,7 @@ BdsBootLinuxFdt (
       Status = BdsLoadImage (InitrdDevicePath, AllocateAnyPages, &InitrdImageBase, &InitrdImageBaseSize);\r
     }\r
     if (EFI_ERROR (Status)) {\r
-      Print (L"ERROR: Did not find initrd image.\n");\r
+      Print (L"ERROR: Did not find initrd image (%r).\n", Status);\r
       goto EXIT_FREE_LINUX;\r
     }\r
 \r
@@ -264,7 +264,7 @@ BdsBootLinuxFdt (
   FdtBlobBase = LINUX_KERNEL_MAX_OFFSET;\r
   Status = BdsLoadImage (FdtDevicePath, AllocateMaxAddress, &FdtBlobBase, &FdtBlobSize);\r
   if (EFI_ERROR(Status)) {\r
-    Print (L"ERROR: Did not find Device Tree blob.\n");\r
+    Print (L"ERROR: Did not find Device Tree blob (%r).\n", Status);\r
     goto EXIT_FREE_INITRD;\r
   }\r
 \r