Skip to contentSkip to conversation

ati_pcigart: fix printk format warning

PATCH RESEND New Randy Dunlap 1 participant 1 message Feb 1, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ati_pcigart: fix printk format warning

This patch is still needed in linux-next 20100201.

Begin forwarded message:
Date: Sun, 17 Jan 2010 15:15:40 -0800
From: Randy Dunlap <[email protected]>
To: Stephen Rothwell <[email protected]>, David Airlie <[email protected]>
Cc: [email protected], LKML <[email protected]>
Subject: [PATCH -next] ati_pcigart: fix printk format warning

From: Randy Dunlap <[email protected]>

Fix ati_pcigart printk format warning:

drivers/gpu/drm/ati_pcigart.c:115: warning: format '%Lx' expects type 'long long unsigned int', but argument 3 has type 'dma_addr_t'

---
 drivers/gpu/drm/ati_pcigart.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ati_pcigart.c +1 -1
@@ -113,7 +113,7 @@ int drm_ati_pcigart_init(struct drm_devi
 
 		if (pci_set_dma_mask(dev->pdev, gart_info->table_mask)) {
 			DRM_ERROR("fail to set dma mask to 0x%Lx\n",
-				  gart_info->table_mask);
+				  (unsigned long long)gart_info->table_mask);
 			ret = 1;
 			goto done;
 		}

---
~Randy