summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2010-11-25 03:16:31 +0000
committeremaste <emaste@FreeBSD.org>2010-11-25 03:16:31 +0000
commit0e804ca5ee4d874b58c1a27649258da21b2a2057 (patch)
tree099d940fc4e979e02f6399377ca4cff9fea511ba /sys/boot
parent597c003458963a9d5b94e49b797277b2196a08d7 (diff)
downloadFreeBSD-src-0e804ca5ee4d874b58c1a27649258da21b2a2057.zip
FreeBSD-src-0e804ca5ee4d874b58c1a27649258da21b2a2057.tar.gz
Give a bit of a hint of the failure (read != expected) but don't make
the error message needlessly more verbose. Discussed with: attilio
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/load_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/load_elf.c b/sys/boot/common/load_elf.c
index 34ed1fd..f0880b1 100644
--- a/sys/boot/common/load_elf.c
+++ b/sys/boot/common/load_elf.c
@@ -453,7 +453,7 @@ __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! (%ju - %ju)", (uintmax_t)result,
+ 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;
OpenPOWER on IntegriCloud