summaryrefslogtreecommitdiff
path: root/kexec/kexec.c
diff options
context:
space:
mode:
authorBernhard Walle <bwalle@suse.de>2008-05-25 22:11:54 +0200
committerSimon Horman <horms@verge.net.au>2008-05-28 10:06:30 +1000
commitbf61432d40c2b2618f17735254090b7653319bb7 (patch)
tree21b72b8d21c6abbc60456a3dc833368c2039a0d7 /kexec/kexec.c
parent3e2fd34a4c31f8fd7e0646dcd954fcb0ccc8296a (diff)
Use 'long long' for printf() format string and ELF64 numbers.
Since 'long long' is 64 bit wide on almost any platform, especially on 32 bit platforms (like i386) while 'long' is only 64 bit on 64 bit platforms but 32 bit on 32 bit platforms. Thus, 'long long' is more suited and fixes compiler warnings like kexec/crashdump-elf.c:160: warning: format '%lx' expects type \ 'long unsigned int', but argument 4 has type 'Elf64_Off' kexec/crashdump-elf.c:160: warning: format '%lx' expects type \ 'long unsigned int', but argument 5 has type 'Elf64_Addr' ... kexec/crashdump-elf.c:248: warning: format '%lx' expects type \ 'long unsigned int', but argument 8 has type 'Elf64_Xword' Tested on i686-pc-linux-gnu. Signed-off-by: Bernhard Walle <bwalle@suse.de> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec.c')
0 files changed, 0 insertions, 0 deletions