svn commit: r296713 - head/sys/boot/efi/boot1

Andrew Turner andrew at FreeBSD.org
Sat Mar 12 06:50:18 UTC 2016


Author: andrew
Date: Sat Mar 12 06:50:16 2016
New Revision: 296713
URL: https://svnweb.freebsd.org/changeset/base/296713

Log:
  Print the correct size of loader.efi when failing to load it into memory.
  
  Obtained from:	AsiaBSDCon
  Sponsored by:	ABT Systems Ltd

Modified:
  head/sys/boot/efi/boot1/boot1.c

Modified: head/sys/boot/efi/boot1/boot1.c
==============================================================================
--- head/sys/boot/efi/boot1/boot1.c	Sat Mar 12 03:53:58 2016	(r296712)
+++ head/sys/boot/efi/boot1/boot1.c	Sat Mar 12 06:50:16 2016	(r296713)
@@ -405,7 +405,7 @@ try_boot()
 	if ((status = bs->LoadImage(TRUE, image, devpath_last(dev->devpath),
 	    loaderbuf, loadersize, &loaderhandle)) != EFI_SUCCESS) {
 		printf("Failed to load image provided by %s, size: %zu, (%lu)\n",
-		     mod->name, bufsize, EFI_ERROR_CODE(status));
+		     mod->name, loadersize, EFI_ERROR_CODE(status));
 		goto errout;
 	}
 


More information about the svn-src-all mailing list