diff options
author | Jani Nikula <jani.nikula@intel.com> | 2013-06-07 09:03:50 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-07-01 05:14:43 -0400 |
commit | 3765f3048651586e2617793e9efe184ff8c79a97 (patch) | |
tree | aa6624d0a21dd76ad8ed330a74948ed5ae7cdb05 | |
parent | 0f4f7b57954dda93b10e3b46594b0bfe24bba22c (diff) |
drm/i915: fix build warning on format specifier mismatch
drivers/gpu/drm/i915/i915_gem.c: In function ‘i915_gem_object_bind_to_gtt’:
drivers/gpu/drm/i915/i915_gem.c:3002:3: warning: format ‘%ld’ expects
argument of type ‘long int’, but argument 5 has type ‘size_t’ [-Wformat]
v2: Use %zu instead of %d. Two char patch, and 100% wrong. (Ville)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index e31eeb1d7fd6..fa074cec8587 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -3112,7 +3112,7 @@ i915_gem_object_bind_to_gtt(struct drm_i915_gem_object *obj, | |||
3112 | * before evicting everything in a vain attempt to find space. | 3112 | * before evicting everything in a vain attempt to find space. |
3113 | */ | 3113 | */ |
3114 | if (obj->base.size > gtt_max) { | 3114 | if (obj->base.size > gtt_max) { |
3115 | DRM_ERROR("Attempting to bind an object larger than the aperture: object=%zd > %s aperture=%ld\n", | 3115 | DRM_ERROR("Attempting to bind an object larger than the aperture: object=%zd > %s aperture=%zu\n", |
3116 | obj->base.size, | 3116 | obj->base.size, |
3117 | map_and_fenceable ? "mappable" : "total", | 3117 | map_and_fenceable ? "mappable" : "total", |
3118 | gtt_max); | 3118 | gtt_max); |