diff options
author | Zhang Yanfei <zhangyanfei@cn.fujitsu.com> | 2013-04-08 10:11:09 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2013-04-08 12:32:56 +0900 |
commit | b6e1a672bb69420bb0af61bcfa862f4af485ff88 (patch) | |
tree | f844166827049f024541b312fea898b8c626fa87 /kexec/add_segment.c | |
parent | 969f3e8c1c534f63b869183ccf292bcaef0e5558 (diff) |
kexec, i386: Fix build warning of size_t print
When compile kexec-tools in i386, we got the following warnings:
kexec/kexec-elf-rel.c: In function ‘elf_rel_set_symbol’:
kexec/kexec-elf-rel.c:517: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘size_t’
kexec/kexec-elf-rel.c: In function ‘elf_rel_get_symbol’:
kexec/kexec-elf-rel.c:541: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘size_t’
This is because the two functions output a size_t value as %ld
when it should be %zd, resulting in this warning.
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/add_segment.c')
0 files changed, 0 insertions, 0 deletions