summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2012-11-29 12:02:49 -0800
committerSimon Horman <horms@verge.net.au>2012-12-03 16:58:30 +0900
commit66980b22cd514510c31f524ec39c03f46929b329 (patch)
tree38ffba4399b0346131a59432d354be06e1a487e2
parent5796e76fb629738b0e9672f69745f2e7017ec257 (diff)
downloadkexec-tools-66980b22cd514510c31f524ec39c03f46929b329.tar.gz
kexec: Fix compile errors in crashdump-mips.c
When building configured as '--host=mips64-octeon-linux-gnu' using GCC-4.7.0 there are two compile errors, fix them. Signed-off-by: David Daney <david.daney@cavium.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/mips/crashdump-mips.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kexec/arch/mips/crashdump-mips.c b/kexec/arch/mips/crashdump-mips.c
index f988698f..6f9f6c6e 100644
--- a/kexec/arch/mips/crashdump-mips.c
+++ b/kexec/arch/mips/crashdump-mips.c
@@ -83,7 +83,7 @@ static int get_kernel_vaddr_and_size(struct crash_elf_info *elf_info,
dbgprintf("kernel_vaddr= 0x%llx paddr %llx\n",
elf_info->kern_vaddr_start,
elf_info->kern_paddr_start);
- dbgprintf("kernel size = 0x%llx\n", elf_info->kern_size);
+ dbgprintf("kernel size = 0x%lx\n", elf_info->kern_size);
return 0;
}
fprintf(stderr, "Cannot determine kernel virtual load addr and size\n");
@@ -356,7 +356,7 @@ int load_crashdump_segments(struct kexec_info *info, char* mod_cmdline,
#ifdef __mips64
if (arch_options.core_header_type == CORE_TYPE_ELF64) {
elf_info = &elf_info64;
- crash_create = crash_create_elf64;
+ crash_create = crash_create_elf64_headers;
start_offset = 0xffffffff80000000UL;
}
#endif