From: Fabio Estevam <fabio.estevam@freescale.com>
To: plagnioj@jcrosoft.com
Cc: Fabio Estevam <fabio.estevam@freescale.com>,
linux-fbdev@vger.kernel.org,
Daniel Vetter <daniel.vetter@ffwll.ch>,
intel-gfx@lists.freedesktop.org, Dave Airlie <airlied@redhat.com>,
festevam@gmail.com
Subject: [PATCH 2/2] i915: i915_gem: Print a size_t with %z
Date: Tue, 18 Jun 2013 13:26:28 +0000 [thread overview]
Message-ID: <1371561988-30989-2-git-send-email-fabio.estevam@freescale.com> (raw)
In-Reply-To: <1371561988-30989-1-git-send-email-fabio.estevam@freescale.com>
Fix the following build warning:
drivers/gpu/drm/i915/i915_gem.c:3129:3: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' [-Wformat]
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Dave Airlie <airlied@redhat.com>
Cc: <intel-gfx@lists.freedesktop.org>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/gpu/drm/i915/i915_gem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 6e469e6..d497ca5 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3126,7 +3126,7 @@ i915_gem_object_bind_to_gtt(struct drm_i915_gem_object *obj,
* before evicting everything in a vain attempt to find space.
*/
if (obj->base.size > gtt_max) {
- DRM_ERROR("Attempting to bind an object larger than the aperture: object=%zd > %s aperture=%ld\n",
+ DRM_ERROR("Attempting to bind an object larger than the aperture: object=%zd > %s aperture=%zd\n",
obj->base.size,
map_and_fenceable ? "mappable" : "total",
gtt_max);
--
1.8.1.2
next prev parent reply other threads:[~2013-06-18 13:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-18 13:26 [PATCH 1/2] video: fbmem: Use 'const char' in fb_get_options() Fabio Estevam
2013-06-18 13:26 ` Fabio Estevam [this message]
2013-06-18 14:53 ` [PATCH 2/2] i915: i915_gem: Print a size_t with %z Geert Uytterhoeven
2013-06-19 7:33 ` [PATCH 1/2] video: fbmem: Use 'const char' in fb_get_options() Ville Syrjälä
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1371561988-30989-2-git-send-email-fabio.estevam@freescale.com \
--to=fabio.estevam@freescale.com \
--cc=airlied@redhat.com \
--cc=daniel.vetter@ffwll.ch \
--cc=festevam@gmail.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=plagnioj@jcrosoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).