projects/linux·commit aeb565df

Fix annoying DRM_ERROR() string warning

aeb565df · Linus Torvalds <[email protected]> · 2009-01-26 10:01:53 -08:00

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 <[email protected]>
Commit
aeb565dfc3ac4c8b47c5049085b4c7bfb2c7d5d7
Parents
2d07d4d1

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/gpu/drm/i915/i915_gem.cmodified+1−1View file

drivers/gpu/drm/i915/i915_gem.c

View file
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 96316fd..33fbeb6 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -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;
}
}