Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2015 19:49:01 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r292562 - stable/10/sys/boot/amd64/boot1.efi
Message-ID:  <201512211949.tBLJn12O082088@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Mon Dec 21 19:49:00 2015
New Revision: 292562
URL: https://svnweb.freebsd.org/changeset/base/292562

Log:
  MFC r279738, r281307: boot1.efi: add error reporting
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/10/sys/boot/amd64/boot1.efi/boot1.c
Directory Properties:
  stable/10/   (props changed)
  stable/10/sys/gnu/dts/   (props changed)

Modified: stable/10/sys/boot/amd64/boot1.efi/boot1.c
==============================================================================
--- stable/10/sys/boot/amd64/boot1.efi/boot1.c	Mon Dec 21 19:40:32 2015	(r292561)
+++ stable/10/sys/boot/amd64/boot1.efi/boot1.c	Mon Dec 21 19:49:00 2015	(r292562)
@@ -307,12 +307,19 @@ load(const char *fname)
 	/* XXX: For secure boot, we need our own loader here */
 	status = systab->BootServices->LoadImage(TRUE, image, bootdevpath,
 	    buffer, bufsize, &loaderhandle);
+	if (EFI_ERROR(status))
+		printf("LoadImage failed with error %lx\n", status);
 
 	status = systab->BootServices->HandleProtocol(loaderhandle,
 	    &LoadedImageGUID, (VOID**)&loaded_image);
+	if (EFI_ERROR(status))
+		printf("HandleProtocol failed with error %lx\n", status);
+
 	loaded_image->DeviceHandle = bootdevhandle;
 
 	status = systab->BootServices->StartImage(loaderhandle, NULL, NULL);
+	if (EFI_ERROR(status))
+		printf("StartImage failed with error %lx\n", status);
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512211949.tBLJn12O082088>