mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
Fix some more printf() format problems.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
45b16d22c6
commit
348753d416
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ cpu_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
||||||
|
|
||||||
cpuid = simple_strtoul(argv[1], NULL, 10);
|
cpuid = simple_strtoul(argv[1], NULL, 10);
|
||||||
if (cpuid >= CONFIG_NR_CPUS) {
|
if (cpuid >= CONFIG_NR_CPUS) {
|
||||||
printf ("Core num: %d is out of range[0..%d]\n",
|
printf ("Core num: %lu is out of range[0..%d]\n",
|
||||||
cpuid, CONFIG_NR_CPUS - 1);
|
cpuid, CONFIG_NR_CPUS - 1);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,12 +50,12 @@ int cpu_status(int nr)
|
||||||
|
|
||||||
if (nr == id) {
|
if (nr == id) {
|
||||||
table = (u32 *)get_spin_addr();
|
table = (u32 *)get_spin_addr();
|
||||||
printf("table base @ 0x%08x\n", table);
|
printf("table base @ 0x%p\n", table);
|
||||||
} else {
|
} else {
|
||||||
table = (u32 *)get_spin_addr() + nr * NUM_BOOT_ENTRY;
|
table = (u32 *)get_spin_addr() + nr * NUM_BOOT_ENTRY;
|
||||||
printf("Running on cpu %d\n", id);
|
printf("Running on cpu %d\n", id);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf("table @ 0x%08x:\n", table);
|
printf("table @ 0x%p\n", table);
|
||||||
printf(" addr - 0x%08x\n", table[BOOT_ENTRY_ADDR_LOWER]);
|
printf(" addr - 0x%08x\n", table[BOOT_ENTRY_ADDR_LOWER]);
|
||||||
printf(" pir - 0x%08x\n", table[BOOT_ENTRY_PIR]);
|
printf(" pir - 0x%08x\n", table[BOOT_ENTRY_PIR]);
|
||||||
printf(" r3 - 0x%08x\n", table[BOOT_ENTRY_R3_LOWER]);
|
printf(" r3 - 0x%08x\n", table[BOOT_ENTRY_R3_LOWER]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue