Use the appropriate format in debug print statements.
Cc: Sachin P. Sant <[EMAIL PROTECTED]>
Signed-off-by: Simon Horman <[EMAIL PROTECTED]>
Index: kexec-tools-unstable/kexec/arch/ppc64/kexec-elf-ppc64.c
===================================================================
--- kexec-tools-unstable.orig/kexec/arch/ppc64/kexec-elf-ppc64.c
2006-12-20 15:05:18.000000000 +0900
+++ kexec-tools-unstable/kexec/arch/ppc64/kexec-elf-ppc64.c 2006-12-20
15:06:10.000000000 +0900
@@ -322,13 +322,13 @@
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++)
Index: kexec-tools-unstable/kexec/arch/ppc64/kexec-ppc64.c
===================================================================
--- kexec-tools-unstable.orig/kexec/arch/ppc64/kexec-ppc64.c 2006-12-20
15:06:26.000000000 +0900
+++ kexec-tools-unstable/kexec/arch/ppc64/kexec-ppc64.c 2006-12-20
15:07:49.000000000 +0900
@@ -509,7 +509,9 @@
#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 @@
#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;
Index: kexec-tools-unstable/kexec/arch/ppc64/crashdump-ppc64.c
===================================================================
--- kexec-tools-unstable.orig/kexec/arch/ppc64/crashdump-ppc64.c
2006-12-20 15:08:14.000000000 +0900
+++ kexec-tools-unstable/kexec/arch/ppc64/crashdump-ppc64.c 2006-12-20
15:09:00.000000000 +0900
@@ -383,7 +383,8 @@
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
}
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot