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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to