The size of a dma_addr_t variable varies among different architectures.
The save way to emit such a value is using the %pad format. This
prepares allowing this driver to be compiled on non-mips platforms.

Signed-off-by: Uwe Kleine-König <[email protected]>
---
 drivers/video/fbdev/au1100fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/au1100fb.c b/drivers/video/fbdev/au1100fb.c
index 914f371a614c..e43687ac74a1 100644
--- a/drivers/video/fbdev/au1100fb.c
+++ b/drivers/video/fbdev/au1100fb.c
@@ -465,7 +465,7 @@ static int au1100fb_drv_probe(struct platform_device *dev)
        fbdev->info.fix.smem_len = fbdev->fb_len;
 
        print_dbg("Framebuffer memory map at %p", fbdev->fb_mem);
-       print_dbg("phys=0x%08x, size=%zuK", &fbdev->fb_phys, fbdev->fb_len / 
1024);
+       print_dbg("phys=0x%pad, size=%zuK", &fbdev->fb_phys, fbdev->fb_len / 
1024);
 
        /* load the panel info into the var struct */
        fbdev->info.var = (struct fb_var_screeninfo) {
-- 
2.47.3

Reply via email to