Page MenuHomeFreeBSD

D43124.diff
No OneTemporary

D43124.diff

diff --git a/usr.sbin/kldxref/ef.c b/usr.sbin/kldxref/ef.c
--- a/usr.sbin/kldxref/ef.c
+++ b/usr.sbin/kldxref/ef.c
@@ -512,8 +512,8 @@
ofs = ef_get_offset(ef, address);
if (ofs == 0) {
if (ef->ef_verbose)
- warnx("ef_seg_read_rel(%s): zero offset (%jx:%ju)",
- ef->ef_name, (uintmax_t)address, (uintmax_t)ofs);
+ warnx("ef_seg_read_rel(%s): bad address (%jx)",
+ ef->ef_name, (uintmax_t)address);
return (EFAULT);
}
error = elf_read_raw_data(ef->ef_efile, ofs, dest, len);
@@ -542,7 +542,7 @@
int error;
ofs = ef_get_offset(ef, address);
- if (ofs == 0 || ofs == (GElf_Off)-1) {
+ if (ofs == 0) {
if (ef->ef_verbose)
warnx("ef_seg_read_string(%s): bad offset (%jx:%ju)",
ef->ef_name, (uintmax_t)address, (uintmax_t)ofs);

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 9:40 PM (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15758077
Default Alt Text
D43124.diff (773 B)

Event Timeline