Skip to contentSkip to conversation

watchdog/hpwdt: formatting of pointers in printk()

PATCH Applied Kulikov Vasiliy 1 participant 1 message Jul 14, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 11/11 watchdog/hpwdt: formatting of pointers in printk()

Use %p instead of %08x in printk().

---
 drivers/watchdog/hpwdt.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/watchdog/hpwdt.c +2 -2
index dbe650e..2056534 100644
@@ -250,8 +250,8 @@ static int __devinit cru_detect(unsigned long map_entry,
 			physical_bios_offset);
 		printk(KERN_DEBUG "hpwdt: CRU Length:         0x%lx\n",
 			cru_length);
-		printk(KERN_DEBUG "hpwdt: CRU Mapped Address: 0x%x\n",
-			(unsigned int)&cru_rom_addr);
+		printk(KERN_DEBUG "hpwdt: CRU Mapped Address: %p\n",
+			&cru_rom_addr);
 	}
 	iounmap(bios32_map);
 	return retval;
Signature · 1 line
1.7.0.4