Skip to content

Commit

Permalink
i915: Fix format string warnings on x86-64.
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Linus Torvalds authored and Dave Airlie committed Oct 23, 2008
1 parent a2d44cc commit fe8133d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/drm_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,12 +522,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 %8zd %7d %8d\n",
obj->name, obj->size,
atomic_read(&obj->handlecount.refcount),
atomic_read(&obj->refcount.refcount));
Expand Down

0 comments on commit fe8133d

Please sign in to comment.