Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 2010 18:45:12 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r215755 - stable/8/sys/boot/common
Message-ID:  <201011231845.oANIjCrW039323@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Tue Nov 23 18:45:12 2010
New Revision: 215755
URL: http://svn.freebsd.org/changeset/base/215755

Log:
  Make this printf output more verbose.
  
  Sponsored by:	Sandvine Incorporated
  Submitted by:	Sandvine Incorporated
  MFC after:	3 days

Modified:
  stable/8/sys/boot/common/load_elf.c

Modified: stable/8/sys/boot/common/load_elf.c
==============================================================================
--- stable/8/sys/boot/common/load_elf.c	Tue Nov 23 17:28:23 2010	(r215754)
+++ stable/8/sys/boot/common/load_elf.c	Tue Nov 23 18:45:12 2010	(r215755)
@@ -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;



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