Unbreak compile with ELF_VERBOSE defined, and fix format warnings.
This commit is contained in:
parent
1ae4d97d51
commit
000a0f2a71
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163917
@ -32,6 +32,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/exec.h>
|
||||
#include <sys/linker.h>
|
||||
#include <sys/module.h>
|
||||
#include <sys/stdint.h>
|
||||
#include <string.h>
|
||||
#include <machine/elf.h>
|
||||
#include <stand.h>
|
||||
@ -400,9 +401,9 @@ __elfN(loadimage)(struct preloaded_file *fp, elf_file_t ef, u_int64_t off)
|
||||
lastaddr += sizeof(size);
|
||||
|
||||
#ifdef ELF_VERBOSE
|
||||
printf("\n%s: 0x%lx@0x%lx -> 0x%lx-0x%lx", secname,
|
||||
shdr[i].sh_size, shdr[i].sh_offset,
|
||||
lastaddr, lastaddr + shdr[i].sh_size);
|
||||
printf("\n%s: 0x%jx@0x%jx -> 0x%jx-0x%jx", secname,
|
||||
(uintmax_t)shdr[i].sh_size, (uintmax_t)shdr[i].sh_offset,
|
||||
(uintmax_t)lastaddr, (uintmax_t)(lastaddr + shdr[i].sh_size));
|
||||
#else
|
||||
if (i == symstrindex)
|
||||
printf("+");
|
||||
|
Loading…
Reference in New Issue
Block a user