]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Fix annoying DRM_ERROR() string warning
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 26 Jan 2009 18:01:53 +0000 (10:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 26 Jan 2009 18:01:53 +0000 (10:01 -0800)
Use '%zu' to print out a size_t variable, not '%d'.  Another case of the
"let's keep at least Linus' defconfig compile warningless" rule.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/i915/i915_gem.c

index 96316fd4723322f7ac277e3747abdc806ab3a98e..33fbeb664f08b89e6eed752e9ec0ddd2fbb6ed73 100644 (file)
@@ -3427,7 +3427,7 @@ i915_gem_attach_phys_object(struct drm_device *dev,
                ret = i915_gem_init_phys_object(dev, id,
                                                obj->size);
                if (ret) {
-                       DRM_ERROR("failed to init phys object %d size: %d\n", id, obj->size);
+                       DRM_ERROR("failed to init phys object %d size: %zu\n", id, obj->size);
                        goto out;
                }
        }