[PATCH] Use 'long long' for printf() format string and ELF64 numbers.

Jamey Sharp jamey at minilop.net
Tue May 27 20:48:44 EDT 2008


On Sun, May 25, 2008 at 1:11 PM, Bernhard Walle <bwalle at suse.de> wrote:
>  kexec/crashdump-elf.c:160: warning: format '%lx' expects type \
>        'long unsigned int', but argument 4 has type 'Elf64_Off'

This is what inttypes.h is for, right?

> dbgprintf("%s: p_type = %u, p_offset = 0x%llx p_paddr = 0x%llx " ...

Perhaps (... "p_offset = 0x" PRIx64 " p_paddr = 0x" PRIx64 ...)?

Jamey



More information about the kexec mailing list