diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-18 00:43:02 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-10-23 05:42:27 +0200 |
commit | fe8133dc07e613587f8e667bce769edce8490f2a (patch) | |
tree | ff76b68b0b0bf2997037ca73ab6b032b9e88e03f /drivers/gpu | |
parent | i915: Don't dereference HWS in /proc debug files when it isn't initialized. (diff) | |
download | linux-fe8133dc07e613587f8e667bce769edce8490f2a.tar.xz linux-fe8133dc07e613587f8e667bce769edce8490f2a.zip |
i915: Fix format string warnings on x86-64.
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_proc.c b/drivers/gpu/drm/drm_proc.c index d490db4c0de0..ae73b7f7249a 100644 --- a/drivers/gpu/drm/drm_proc.c +++ b/drivers/gpu/drm/drm_proc.c @@ -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)); |