diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2015-02-10 20:46:12 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2015-02-12 08:10:41 +0900 |
commit | f9dac450c212ca313e621904aab9f0723456a8b6 (patch) | |
tree | 946482a650bef40ecab3dcd3d635259dabc8e852 /kexec/arch/mips/crashdump-mips.c | |
parent | 58bbd468571b3e80585e5d68e97c8d67c8ed583b (diff) |
mips: fix compiler warning on printing 64-bit integer.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/mips/crashdump-mips.c')
-rw-r--r-- | kexec/arch/mips/crashdump-mips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kexec/arch/mips/crashdump-mips.c b/kexec/arch/mips/crashdump-mips.c index e7840e0..98c9f7c 100644 --- a/kexec/arch/mips/crashdump-mips.c +++ b/kexec/arch/mips/crashdump-mips.c @@ -22,6 +22,7 @@ #include <stdlib.h> #include <errno.h> #include <limits.h> +#include <inttypes.h> #include <elf.h> #include <sys/types.h> #include <sys/stat.h> @@ -52,7 +53,7 @@ static int get_kernel_paddr(struct crash_elf_info *elf_info) if (parse_iomem_single("Kernel code\n", &start, NULL) == 0) { elf_info->kern_paddr_start = start; - dbgprintf("kernel load physical addr start = 0x%lx\n", start); + dbgprintf("kernel load physical addr start = 0x%" PRIu64 "\n", start); return 0; } |