diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2008-11-14 09:59:48 -0700 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2008-11-14 09:59:48 -0700 |
commit | a108096878aa6cb744b5280ca59395b6c0152d14 (patch) | |
tree | 552083cab7d520088ff7681c4ad36b2ee3757c82 /drivers/video | |
parent | 847cdf42d589882aca683b6fb65b2c7832e92231 (diff) | |
download | op-kernel-dev-a108096878aa6cb744b5280ca59395b6c0152d14.zip op-kernel-dev-a108096878aa6cb744b5280ca59395b6c0152d14.tar.gz |
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 <jwboyer@linux.vnet.ibm.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/xilinxfb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/xilinxfb.c b/drivers/video/xilinxfb.c index 5da3d24..40a3a2a 100644 --- a/drivers/video/xilinxfb.c +++ b/drivers/video/xilinxfb.c @@ -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 */ |