kldxref: correct function names in warning messages
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
9d1208bbd2
commit
f68e716ffe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327503
@ -475,7 +475,7 @@ ef_seg_read_rel(elf_file_t ef, Elf_Off offset, size_t len, void*dest)
|
||||
|
||||
if (ofs == 0) {
|
||||
if (ef->ef_verbose)
|
||||
warnx("ef_seg_read(%s): zero offset (%lx:%ld)",
|
||||
warnx("ef_seg_read_rel(%s): zero offset (%lx:%ld)",
|
||||
ef->ef_name, (long)offset, ofs);
|
||||
return EFAULT;
|
||||
}
|
||||
|
@ -227,7 +227,7 @@ ef_obj_seg_read(elf_file_t ef, Elf_Off offset, size_t len, void *dest)
|
||||
|
||||
if (offset + len > ef->size) {
|
||||
if (ef->ef_verbose)
|
||||
warnx("ef_seg_read_rel(%s): bad offset/len (%lx:%ld)",
|
||||
warnx("ef_obj_seg_read(%s): bad offset/len (%lx:%ld)",
|
||||
ef->ef_name, (long)offset, (long)len);
|
||||
return (EFAULT);
|
||||
}
|
||||
@ -246,7 +246,7 @@ ef_obj_seg_read_rel(elf_file_t ef, Elf_Off offset, size_t len, void *dest)
|
||||
|
||||
if (offset + len > ef->size) {
|
||||
if (ef->ef_verbose)
|
||||
warnx("ef_seg_read_rel(%s): bad offset/len (%lx:%ld)",
|
||||
warnx("ef_obj_seg_read_rel(%s): bad offset/len (%lx:%ld)",
|
||||
ef->ef_name, (long)offset, (long)len);
|
||||
return (EFAULT);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user