diff options
author | Horms <horms@verge.net.au> | 2006-12-20 15:55:10 +0900 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2006-12-21 15:29:12 +0900 |
commit | 1f0c1b411631a4ae320a7b450adee8475a8a0e92 (patch) | |
tree | b21dc76590d1e4f2521acbc7ae7ce9b6b377d54e | |
parent | 1e2050cf828181eb125dfdf6af99a4f5170c0462 (diff) |
kexec-tool: Use the appropriate format in debug print statements
Use the appropriate format in debug print statements.
Cc: Sachin P. Sant <sachinp@in.ibm.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/arch/ppc64/crashdump-ppc64.c | 3 | ||||
-rw-r--r-- | kexec/arch/ppc64/kexec-elf-ppc64.c | 12 | ||||
-rw-r--r-- | kexec/arch/ppc64/kexec-ppc64.c | 8 |
3 files changed, 14 insertions, 9 deletions
diff --git a/kexec/arch/ppc64/crashdump-ppc64.c b/kexec/arch/ppc64/crashdump-ppc64.c index 092419c..39879af 100644 --- a/kexec/arch/ppc64/crashdump-ppc64.c +++ b/kexec/arch/ppc64/crashdump-ppc64.c @@ -383,7 +383,8 @@ void add_usable_mem_rgns(unsigned long long base, unsigned long long size) usablemem_rgns.ranges[usablemem_rgns.size++].end = end; #ifdef DEBUG - fprintf(stderr, "usable memory rgns size:%d base:%lx size:%lx\n", usablemem_rgns.size, base, size); + fprintf(stderr, "usable memory rgns size:%u base:%llx size:%llx\n", + usablemem_rgns.size, base, size); #endif } diff --git a/kexec/arch/ppc64/kexec-elf-ppc64.c b/kexec/arch/ppc64/kexec-elf-ppc64.c index 944df79..cfd727a 100644 --- a/kexec/arch/ppc64/kexec-elf-ppc64.c +++ b/kexec/arch/ppc64/kexec-elf-ppc64.c @@ -322,13 +322,13 @@ int elf_ppc64_load(int argc, char **argv, const char *buf, off_t len, sizeof(toc_addr)); fprintf(stderr, "info->entry is %p\n", info->entry); - fprintf(stderr, "kernel is %Lx\n", my_kernel); - fprintf(stderr, "dt_offset is %Lx\n", my_dt_offset); + fprintf(stderr, "kernel is %lx\n", my_kernel); + fprintf(stderr, "dt_offset is %lx\n", my_dt_offset); fprintf(stderr, "panic_kernel is %x\n", my_panic_kernel); - fprintf(stderr, "backup_start is %Lx\n", my_backup_start); - fprintf(stderr, "stack is %Lx\n", my_stack); - fprintf(stderr, "toc_addr is %Lx\n", toc_addr); - fprintf(stderr, "purgatory size is %d\n", purgatory_size); + fprintf(stderr, "backup_start is %lx\n", my_backup_start); + fprintf(stderr, "stack is %lx\n", my_stack); + fprintf(stderr, "toc_addr is %lx\n", toc_addr); + fprintf(stderr, "purgatory size is %lu\n", purgatory_size); #endif for (i = 0; i < nr_segments; i++) diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c index 592a4d6..d74db4d 100644 --- a/kexec/arch/ppc64/kexec-ppc64.c +++ b/kexec/arch/ppc64/kexec-ppc64.c @@ -509,7 +509,9 @@ static int get_devtree_details(unsigned long kexec_flags) #ifdef DEBUG int k; for (k = 0; k < i; k++) - fprintf(stderr, "exclude_range sorted exclude_range[%d] start:%lx, end:%lx\n", k, exclude_range[k].start, exclude_range[k].end); + fprintf(stderr, "exclude_range sorted exclude_range[%d] " + "start:%llx, end:%llx\n", k, exclude_range[k].start, + exclude_range[k].end); #endif return 0; } @@ -586,7 +588,9 @@ int setup_memory_ranges(unsigned long kexec_flags) #ifdef DEBUG int k; for (k = 0; k < j; k++) - fprintf(stderr, "setup_memory_ranges memory_range[%d] start:%lx, end:%lx\n", k, memory_range[k].start, memory_range[k].end); + fprintf(stderr, "setup_memory_ranges memory_range[%d] " + "start:%llx, end:%llx\n", k, memory_range[k].start, + memory_range[k].end); #endif return 0; |