Skip to content

Commit

Permalink
watchdog: hpwdt: formatting of pointers in printk()
Browse files Browse the repository at this point in the history
Use %p instead of %08x in printk().

Signed-off-by: Kulikov Vasiliy <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
  • Loading branch information
segoon authored and Wim Van Sebroeck committed Aug 8, 2010
1 parent 4a37027 commit adb2363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/watchdog/hpwdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,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;
Expand Down

0 comments on commit adb2363

Please sign in to comment.