Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 2010 03:16:31 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215811 - head/sys/boot/common
Message-ID:  <201011250316.oAP3GVvK092173@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Thu Nov 25 03:16:31 2010
New Revision: 215811
URL: http://svn.freebsd.org/changeset/base/215811

Log:
  Give a bit of a hint of the failure (read != expected) but don't make
  the error message needlessly more verbose.
  
  Discussed with: attilio

Modified:
  head/sys/boot/common/load_elf.c

Modified: head/sys/boot/common/load_elf.c
==============================================================================
--- head/sys/boot/common/load_elf.c	Thu Nov 25 03:02:53 2010	(r215810)
+++ head/sys/boot/common/load_elf.c	Thu Nov 25 03:16:31 2010	(r215811)
@@ -453,7 +453,7 @@ __elfN(loadimage)(struct preloaded_file 
 	}
 	result = archsw.arch_readin(ef->fd, lastaddr, shdr[i].sh_size);
 	if (result < 0 || (size_t)result != shdr[i].sh_size) {
-	    printf("\nelf" __XSTRING(__ELF_WORD_SIZE) "_loadimage: could not read symbols - skipped! (%ju - %ju)", (uintmax_t)result,
+	    printf("\nelf" __XSTRING(__ELF_WORD_SIZE) "_loadimage: could not read symbols - skipped! (%ju != %ju)", (uintmax_t)result,
 		(uintmax_t)shdr[i].sh_size);
 	    lastaddr = ssym;
 	    ssym = 0;



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