summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Paalanen <pq@iki.fi>2009-02-28 17:45:02 +0200
committerPekka Paalanen <pq@iki.fi>2009-02-28 17:45:02 +0200
commita6dd0afa87558a670f970e61b023f45a396539eb (patch)
tree3dcc742a9fdd909d3a7ebb2f634a6b2759c3dbd4
parent9e8591dbdbd99ec1cc4922d61ec4cc54ef42f0ac (diff)
drm, ati: fix printf format warnings
Signed-off-by: Pekka Paalanen <pq@iki.fi>
-rw-r--r--linux-core/ati_pcigart.c4
-rw-r--r--linux-core/drm_proc.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/linux-core/ati_pcigart.c b/linux-core/ati_pcigart.c
index 40f8f8dd..fce96dd1 100644
--- a/linux-core/ati_pcigart.c
+++ b/linux-core/ati_pcigart.c
@@ -151,8 +151,8 @@ int drm_ati_pcigart_init(struct drm_device *dev, struct drm_ati_pcigart_info *ga
} else {
address = gart_info->addr;
bus_address = gart_info->bus_addr;
- DRM_DEBUG("PCI: Gart Table: VRAM %08X mapped at %08lX\n",
- bus_address, (unsigned long)address);
+ DRM_DEBUG("PCI: Gart Table: VRAM %08llX mapped at %08lX\n",
+ (u64)bus_address, (unsigned long)address);
}
pci_gart = (u32 *) address;
diff --git a/linux-core/drm_proc.c b/linux-core/drm_proc.c
index d3845bb3..15d8cb96 100644
--- a/linux-core/drm_proc.c
+++ b/linux-core/drm_proc.c
@@ -599,12 +599,12 @@ static int drm_gem_one_name_info(int id, void *ptr, void *data)
struct drm_gem_object *obj = ptr;
struct drm_gem_name_info_data *nid = data;
- DRM_INFO("name %d size %d\n", obj->name, obj->size);
+ DRM_INFO("name %d size %zd\n", obj->name, obj->size);
if (nid->eof)
return 0;
nid->len += sprintf(&nid->buf[nid->len],
- "%6d%9d%8d%9d\n",
+ "%6d%9zd%8d%9d\n",
obj->name, obj->size,
atomic_read(&obj->handlecount.refcount),
atomic_read(&obj->refcount.refcount));