diff options
author | Daniel Kiper <daniel.kiper@oracle.com> | 2012-09-10 13:57:50 +0200 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2012-09-18 10:09:45 +0900 |
commit | 9c385f66cdf5197b56fc7243d55124eb6de32290 (patch) | |
tree | bfef1003538f8c84f93577cd2dfc507e079a9da0 | |
parent | 0f563014228e54ef70413cccbbd41cb8ecded53d (diff) | |
download | kexec-tools-9c385f66cdf5197b56fc7243d55124eb6de32290.tar.gz |
kexec: Move crash memory ranges logging
Move crash memory ranges logging from get_crash_memory_ranges()
to load_crashdump_segments(). This solution will be used by
fixed Xen kdump support, too.
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/i386/crashdump-x86.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/kexec/arch/i386/crashdump-x86.c b/kexec/arch/i386/crashdump-x86.c index 56ef59e7..c6b93541 100644 --- a/kexec/arch/i386/crashdump-x86.c +++ b/kexec/arch/i386/crashdump-x86.c @@ -270,14 +270,6 @@ static int get_crash_memory_ranges(struct memory_range **range, int *ranges, *range = crash_memory_range; *ranges = memory_ranges; - int i; - dbgprintf("CRASH MEMORY RANGES\n"); - for(i = 0; i < memory_ranges; i++) { - start = crash_memory_range[i].start; - end = crash_memory_range[i].end; - dbgprintf("%016Lx-%016Lx\n", start, end); - } - return 0; } @@ -739,6 +731,11 @@ int load_crashdump_segments(struct kexec_info *info, char* mod_cmdline, get_backup_area(info, mem_range, nr_ranges); + dbgprintf("CRASH MEMORY RANGES\n"); + + for(i = 0; i < nr_ranges; ++i) + dbgprintf("%016Lx-%016Lx\n", mem_range[i].start, mem_range[i].end); + /* * if the core type has not been set on command line, set it here * automatically |