svn commit: r216043 - stable/8/sys/boot/common

Attilio Rao attilio at FreeBSD.org
Mon Nov 29 08:12:22 UTC 2010


Author: attilio
Date: Mon Nov 29 08:12:21 2010
New Revision: 216043
URL: http://svn.freebsd.org/changeset/base/216043

Log:
  MFC r215758,215811:
  Make this printf output more verbose.
  
  Sponsored by:	Sandvine Incorporated

Modified:
  stable/8/sys/boot/common/load_elf.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/boot/common/load_elf.c
==============================================================================
--- stable/8/sys/boot/common/load_elf.c	Mon Nov 29 08:04:10 2010	(r216042)
+++ stable/8/sys/boot/common/load_elf.c	Mon Nov 29 08:12:21 2010	(r216043)
@@ -453,7 +453,8 @@ __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!");
+	    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;
 	    goto nosyms;


More information about the svn-src-all mailing list