Date: Mon, 29 Nov 2010 08:12:21 +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: r216043 - stable/8/sys/boot/common Message-ID: <201011290812.oAT8CLjB013309@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011290812.oAT8CLjB013309>