summaryrefslogtreecommitdiffstats
path: root/sys/boot/common
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2010-11-23 18:52:27 +0000
committerattilio <attilio@FreeBSD.org>2010-11-23 18:52:27 +0000
commit762cf185a2b902bb488a94812e069a0566a76795 (patch)
treee0143cf690b943df55d9b053f44aac844fb6b36e /sys/boot/common
parentf24475c87106affd263b5b33135120908339f681 (diff)
downloadFreeBSD-src-762cf185a2b902bb488a94812e069a0566a76795.zip
FreeBSD-src-762cf185a2b902bb488a94812e069a0566a76795.tar.gz
Make this printfoutput more verbose.
Sponsored by: Sandvine Incorporated Submitted by: Sandvine Incorporated MFC after: 3 days
Diffstat (limited to 'sys/boot/common')
-rw-r--r--sys/boot/common/load_elf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c
index 35b3f0b..34ed1fd 100644
--- a/sys/boot/common/load_elf.c
+++ b/sys/boot/common/load_elf.c
@@ -453,7 +453,8 @@ __elfN(loadimage)(struct preloaded_file *fp, elf_file_t ef, u_int64_t off)
}
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;
OpenPOWER on IntegriCloud