kexec-tools: fix compile error
[openwrt/openwrt.git] / package / boot / kexec-tools / patches / 0003-mips-fix-compiler-warning-on-printing-64-bit-integer.patch
1 From 89d455d785190203b1d3a8766c8babb8c1688fc3 Mon Sep 17 00:00:00 2001
2 From: Yousong Zhou <yszhou4tech@gmail.com>
3 Date: Mon, 9 Feb 2015 19:51:25 +0800
4 Subject: [PATCH 3/5] mips: fix compiler warning on printing 64-bit integer.
5
6
7 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
8 ---
9 kexec/arch/mips/crashdump-mips.c | 3 ++-
10 1 file changed, 2 insertions(+), 1 deletion(-)
11
12 diff --git a/kexec/arch/mips/crashdump-mips.c b/kexec/arch/mips/crashdump-mips.c
13 index e7840e0..98c9f7c 100644
14 --- a/kexec/arch/mips/crashdump-mips.c
15 +++ b/kexec/arch/mips/crashdump-mips.c
16 @@ -22,6 +22,7 @@
17 #include <stdlib.h>
18 #include <errno.h>
19 #include <limits.h>
20 +#include <inttypes.h>
21 #include <elf.h>
22 #include <sys/types.h>
23 #include <sys/stat.h>
24 @@ -52,7 +53,7 @@ static int get_kernel_paddr(struct crash_elf_info *elf_info)
25
26 if (parse_iomem_single("Kernel code\n", &start, NULL) == 0) {
27 elf_info->kern_paddr_start = start;
28 - dbgprintf("kernel load physical addr start = 0x%lx\n", start);
29 + dbgprintf("kernel load physical addr start = 0x%" PRIu64 "\n", start);
30 return 0;
31 }
32
33 --
34 1.7.10.4
35