summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2016-06-06 18:01:24 +0100
committerSimon Horman <horms@verge.net.au>2016-06-08 09:24:10 +0900
commit9eb4a681fde5273e9b7211bde38bc6faeac0bc25 (patch)
tree2f78568137725b7a4b3a711d82c70290c79a1e21
parent2f10ffb193c219709f3079854a15718ad872f40e (diff)
arm: clean up phys/page offset debug
Clean up the physical and page offset debug prints. Reviewed-by: Pratyush Anand <panand@redhat.com> Signed-off-by: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/arch/arm/crashdump-arm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kexec/arch/arm/crashdump-arm.c b/kexec/arch/arm/crashdump-arm.c
index 2589582..3b71267 100644
--- a/kexec/arch/arm/crashdump-arm.c
+++ b/kexec/arch/arm/crashdump-arm.c
@@ -136,7 +136,6 @@ static int get_kernel_page_offset(struct kexec_info *info,
user_page_offset);
}
elf_info->page_offset = stext_sym_addr & (~KVBASE_MASK);
- dbgprintf("page_offset is set to %llx\n", elf_info->page_offset);
return 0;
}
@@ -293,11 +292,13 @@ int load_crashdump_segments(struct kexec_info *info, char *mod_cmdline)
* region as PHYS_OFFSET.
*/
phys_offset = usablemem_rgns.ranges->start;
- dbgprintf("phys_offset: %#llx\n", phys_offset);
if (get_kernel_page_offset(info, &elf_info))
return -1;
+ dbgprintf("phys offset = %#llx, page offset = %llx\n",
+ phys_offset, elf_info.page_offset);
+
/*
* Ensure that the crash kernel memory range is sane. The crash kernel
* must be located within memory which is visible during booting.