0003-mips-fix-compiler-warning-on-printing-64-bit-integer.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
  6. ---
  7. kexec/arch/mips/crashdump-mips.c | 3 ++-
  8. 1 file changed, 2 insertions(+), 1 deletion(-)
  9. diff --git a/kexec/arch/mips/crashdump-mips.c b/kexec/arch/mips/crashdump-mips.c
  10. index e7840e0..98c9f7c 100644
  11. --- a/kexec/arch/mips/crashdump-mips.c
  12. +++ b/kexec/arch/mips/crashdump-mips.c
  13. @@ -22,6 +22,7 @@
  14. #include <stdlib.h>
  15. #include <errno.h>
  16. #include <limits.h>
  17. +#include <inttypes.h>
  18. #include <elf.h>
  19. #include <sys/types.h>
  20. #include <sys/stat.h>
  21. @@ -52,7 +53,7 @@ static int get_kernel_paddr(struct crash_elf_info *elf_info)
  22. if (parse_iomem_single("Kernel code\n", &start, NULL) == 0) {
  23. elf_info->kern_paddr_start = start;
  24. - dbgprintf("kernel load physical addr start = 0x%lx\n", start);
  25. + dbgprintf("kernel load physical addr start = 0x%" PRIu64 "\n", start);
  26. return 0;
  27. }
  28. --
  29. 1.7.10.4