diff options
author | Sachin P. Sant <sachinp@in.ibm.com> | 2006-12-21 10:49:39 +0530 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2006-12-21 15:30:04 +0900 |
commit | b26698511bd64550a1e439a4658d0d8706963016 (patch) | |
tree | fa12ab81d8d50db538b727469d49feeb6dedea4c | |
parent | cdab051ce335c98e265a7824280755368799bd7a (diff) |
kexec-tool: Use the appropriate format in debug print statements
* In kexec-ppc64.c, wrong array name was used to print DEBUG information.
* Use the correct array name while printing debug information.
Signed-off-by : Sachin Sant <sachinp@in.ibm.com>
* Make use of dfprintf
* Use %llx instead of %L for long long arguments
* Remove trailing whitespace
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/ppc64/kexec-ppc64.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c index d74db4d..0576f6d 100644 --- a/kexec/arch/ppc64/kexec-ppc64.c +++ b/kexec/arch/ppc64/kexec-ppc64.c @@ -175,9 +175,10 @@ static int get_base_ranges() ((unsigned long long *)buf)[1]; base_memory_range[local_memory_ranges].type = RANGE_RAM; local_memory_ranges++; -#ifdef DEBUG - fprintf(stderr, "%016Lx-%016Lx : %x\n", memory_range[local_memory_ranges-1].start, memory_range[local_memory_ranges-1].end, memory_range[local_memory_ranges].type); -#endif + dfprintf(stderr, "%016llx-%016llx : %x\n", + base_memory_range[local_memory_ranges-1].start, + base_memory_range[local_memory_ranges-1].end, + base_memory_range[local_memory_ranges-1].type); fclose(file); } closedir(dmem); |