Skip to content

Commit

Permalink
Fix annoying DRM_ERROR() string warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Torvalds committed Jan 26, 2009
1 parent 2d07d4d commit aeb565d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit aeb565d

Please sign in to comment.