From patchwork Tue Jun 18 13:26:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 2742511 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EA9639F3A0 for ; Tue, 18 Jun 2013 13:28:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 50D5D204C6 for ; Tue, 18 Jun 2013 13:28:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1DD7204C3 for ; Tue, 18 Jun 2013 13:28:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932422Ab3FRN14 (ORCPT ); Tue, 18 Jun 2013 09:27:56 -0400 Received: from mail-db8lp0184.outbound.messaging.microsoft.com ([213.199.154.184]:36056 "EHLO db8outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932205Ab3FRN1z (ORCPT ); Tue, 18 Jun 2013 09:27:55 -0400 Received: from mail140-db8-R.bigfish.com (10.174.8.248) by DB8EHSOBE029.bigfish.com (10.174.4.92) with Microsoft SMTP Server id 14.1.225.23; Tue, 18 Jun 2013 13:27:53 +0000 Received: from mail140-db8 (localhost [127.0.0.1]) by mail140-db8-R.bigfish.com (Postfix) with ESMTP id B8CA11C0079; Tue, 18 Jun 2013 13:27:53 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1f42h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ah1fc6hzz8275bh8275dhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1d0ch1d2eh1d3fh1dfeh1dffh1e23h1155h) Received: from mail140-db8 (localhost.localdomain [127.0.0.1]) by mail140-db8 (MessageSwitch) id 1371562071489247_9418; Tue, 18 Jun 2013 13:27:51 +0000 (UTC) Received: from DB8EHSMHS006.bigfish.com (unknown [10.174.8.252]) by mail140-db8.bigfish.com (Postfix) with ESMTP id 7303F180047; Tue, 18 Jun 2013 13:27:51 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB8EHSMHS006.bigfish.com (10.174.4.16) with Microsoft SMTP Server (TLS) id 14.16.227.3; Tue, 18 Jun 2013 13:27:50 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-005.039d.mgd.msft.net (10.84.1.17) with Microsoft SMTP Server (TLS) id 14.2.328.11; Tue, 18 Jun 2013 13:27:49 +0000 Received: from fabio-OptiPlex-7010.am.freescale.net ([10.29.244.86]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id r5IDRdNS020371; Tue, 18 Jun 2013 06:27:42 -0700 From: Fabio Estevam To: CC: , , Fabio Estevam , Daniel Vetter , Dave Airlie , Subject: [PATCH 2/2] i915: i915_gem: Print a size_t with %z Date: Tue, 18 Jun 2013 10:26:28 -0300 Message-ID: <1371561988-30989-2-git-send-email-fabio.estevam@freescale.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1371561988-30989-1-git-send-email-fabio.estevam@freescale.com> References: <1371561988-30989-1-git-send-email-fabio.estevam@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Cc: Dave Airlie Cc: Signed-off-by: Fabio Estevam --- 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);