mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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:
parent
847cdf42d5
commit
a108096878
5 changed files with 14 additions and 12 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue