Skip to contentSkip to conversation

Fix some more printf() format problems.

PATCH New Kumar Gala 2 participants 2 messages Jul 14, 2008

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH v2 1/1 Fix some more printf() format problems.

---

updated based on comments from Jean.

- k

 common/cmd_mp.c  |    2 +-
 cpu/mpc85xx/mp.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
common/cmd_mp.c +1 -1
index 26a57c5..b2a397c 100644
@@ -35,7 +35,7 @@ cpu_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
 	cpuid = simple_strtoul(argv[1], NULL, 10);
 	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);
 		return 1;
 	}
cpu/mpc85xx/mp.c +2 -2
index a527cf3..554830f 100644
@@ -50,12 +50,12 @@ int cpu_status(int nr)
 
 	if (nr == id) {
 		table = (u32 *)get_spin_addr();
-		printf("table base @ 0x%08x\n", table);
+		printf("table base @ 0x%p\n", table);
 	} else {
 		table = (u32 *)get_spin_addr() + nr * NUM_BOOT_ENTRY;
 		printf("Running on cpu %d\n", id);
 		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("   pir  - 0x%08x\n", table[BOOT_ENTRY_PIR]);
 		printf("   r3   - 0x%08x\n", table[BOOT_ENTRY_R3_LOWER]);
Signature · 1 line
1.5.5.1
#1 lore raw

PATCH v2 1/1 Fix some more printf() format problems.

Quoted 11 lines · In message <[email protected]> you wrote:

---

updated based on comments from Jean.

- k

 common/cmd_mp.c  |    2 +-
 cpu/mpc85xx/mp.c |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I have the simplest tastes.  I am always satisfied with the best.
                                                       -- Oscar Wilde