svn commit: r215811 - head/sys/boot/common

Ed Maste emaste at FreeBSD.org
Thu Nov 25 03:16:31 UTC 2010


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;


More information about the svn-src-head mailing list