summaryrefslogtreecommitdiff
path: root/kexec/arch
diff options
context:
space:
mode:
authorAleksey Makarov <aleksey.makarov@gmail.com>2012-06-27 00:53:43 +0700
committerSimon Horman <horms@verge.net.au>2012-06-27 09:16:47 +0900
commitbe902019c6161ecead58d2789c73e2999ed9c30b (patch)
tree49f871a651bba322bc20835b42487e6203573b84 /kexec/arch
parentbfca8b3f9dbff356a3970e282c1f94e45f076b48 (diff)
Fix format strings of die()
One of them caused crash when user specifies a file that does not exist. Signed-off-by: Aleksey Makarov <aleksey.makarov@gmail.com> Removed trailing whitespace. Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch')
-rw-r--r--kexec/arch/x86_64/kexec-elf-rel-x86_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
index a1291a6..c795037 100644
--- a/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
+++ b/kexec/arch/x86_64/kexec-elf-rel-x86_64.c
@@ -86,6 +86,6 @@ void machine_apply_elf_rel(struct mem_ehdr *UNUSED(ehdr), unsigned long r_type,
}
return;
overflow:
- die("overflow in relocation type %s val %Lx\n",
+ die("overflow in relocation type %s val %lx\n",
reloc_name(r_type), value);
}