powerpc/virtex: fix various format/casting printk mismatches

Various printk format string in code used by the Xilinx Virtex platform
are not 32-bit/64-bit safe.  Add correct casting to fix the bugs.

Reported-by: Josh Boyer <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
Acked-by: Josh Boyer <[email protected]>
This commit is contained in:
Grant Likely 2008-11-14 09:59:48 -07:00
commit a108096878
5 changed files with 14 additions and 12 deletions

View file

@ -298,8 +298,9 @@ static int xilinxfb_assign(struct device *dev, unsigned long physaddr,
/* Put a banner in the log (for DEBUG) */
dev_dbg(dev, "regs: phys=%lx, virt=%p\n", physaddr, drvdata->regs);
dev_dbg(dev, "fb: phys=%p, virt=%p, size=%x\n",
(void*)drvdata->fb_phys, drvdata->fb_virt, fbsize);
dev_dbg(dev, "fb: phys=%llx, virt=%p, size=%x\n",
(unsigned long long) drvdata->fb_phys, drvdata->fb_virt,
fbsize);
return 0; /* success */