Skip to contentSkip to conversation

video: ati_radeon_fb.c: fix warning while compiling with DEBUG

PATCH New Anatolij Gustschin 1 participant 2 messages Apr 8, 2010 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: ati_radeon_fb.c: fix warning while compiling with DEBUG

Fixes this warning:

ati_radeon_fb.c: In function 'radeon_probe':
ati_radeon_fb.c:598: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'void *'

---
 drivers/video/ati_radeon_fb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/ati_radeon_fb.c +1 -1
index f797104..4a9bd07 100644
@@ -594,7 +594,7 @@ int radeon_probe(struct radeonfb_info *rinfo)
 
 		rinfo->mmio_base = pci_bus_to_virt(pdev, rinfo->mmio_base_bus,
 					PCI_REGION_MEM, 0, MAP_NOCACHE);
-		DPRINT("rinfo->mmio_base = 0x%x bus=0x%x\n",
+		DPRINT("rinfo->mmio_base = 0x%p bus=0x%x\n",
 		       rinfo->mmio_base, rinfo->mmio_base_bus);
 		rinfo->fb_local_base = INREG(MC_FB_LOCATION) << 16;
 		DPRINT("rinfo->fb_local_base = 0x%x\n",rinfo->fb_local_base);
Signature · 1 line
1.6.3.3
#1 lore raw

PATCH 1/1 video: ati_radeon_fb.c: fix warning while compiling with DEBUG

Quoted 10 lines · On Thu, 8 Apr 2010 16:31:54 +0200 Anatolij Gustschin <[email protected]> wrote:

Fixes this warning:

ati_radeon_fb.c: In function 'radeon_probe':
ati_radeon_fb.c:598: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'void *'

---
 drivers/video/ati_radeon_fb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied to u-boot-video/master.