drm/i915: Fix build warning on 32-bit
authorThierry Reding <treding@nvidia.com>
Fri, 14 Aug 2015 10:35:23 +0000 (12:35 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 26 Aug 2015 07:15:36 +0000 (10:15 +0300)
The gtt.stolen_size field is of type size_t, and so should be printed
using %zu to avoid build warnings on either 32-bit and 64-bit builds.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gem_stolen.c

index a36cb95ec798ec8a8a3e09da884cf6528d84c126..f361c4a5699550dc581ad06bb79aa36a8aebb803 100644 (file)
@@ -348,7 +348,7 @@ int i915_gem_init_stolen(struct drm_device *dev)
         * memory, so just consider the start. */
        reserved_total = stolen_top - reserved_base;
 
-       DRM_DEBUG_KMS("Memory reserved for graphics device: %luK, usable: %luK\n",
+       DRM_DEBUG_KMS("Memory reserved for graphics device: %zuK, usable: %luK\n",
                      dev_priv->gtt.stolen_size >> 10,
                      (dev_priv->gtt.stolen_size - reserved_total) >> 10);