mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 00:48:08 +02:00
drm, ati: fix printf format warnings
Signed-off-by: Pekka Paalanen <pq@iki.fi>
This commit is contained in:
parent
9e8591dbdb
commit
a6dd0afa87
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue