aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-10-20 14:14:25 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-20 14:14:25 -0700
commit1ae87786800b5e0411847974b211797b6ada63c4 (patch)
tree39a7f6f4d53a71106a2cf493db5ea4ad3d29b2d6 /drivers/gpu
parent2bea2e4abf2fe8bc7384103aeaad91089109cfba (diff)
downloadkernel_samsung_aries-1ae87786800b5e0411847974b211797b6ada63c4.zip
kernel_samsung_aries-1ae87786800b5e0411847974b211797b6ada63c4.tar.gz
kernel_samsung_aries-1ae87786800b5e0411847974b211797b6ada63c4.tar.bz2
Fix sprintf format warnings in drm_proc.c
Use "%zd" for size_t, and make sure to have a space between the numbers instead of depending on the field width. I don't like warnings in my default targeted build. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/drm_proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_proc.c b/drivers/gpu/drm/drm_proc.c
index d490db4..ae73b7f 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));