From patchwork Fri Aug 1 17:09:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 34730 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f72.google.com (mail-qg0-f72.google.com [209.85.192.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A348F20540 for ; Fri, 1 Aug 2014 17:22:11 +0000 (UTC) Received: by mail-qg0-f72.google.com with SMTP id q107sf8717797qgd.11 for ; Fri, 01 Aug 2014 10:22:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:date :message-id:subject:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=t3qz01NSAoMkEiRcSCi8v2BIVQKfwyirMtKxSRM902Q=; b=EbL/XtESGjW2mXB+rUjHOhjYaXFQpX6qvxfkHWB67/0KpDyjOd3caAD3IDJJ4vwil9 pNPwBsI1sV1Zo30jHA4dx6G9tpIxSSOdHlPMQdiivPqcDBdeB/LYHMZ+77hcdL1huQr0 q+ItK7b9Qv3Yy7KugZ1lLr2Q20fXUmSFeSYI9XsmK2oZOfSxpo2DFtKHp8siu97tYk4j guCdbYp8JS2B4kTev5qGFyoHzvNv1V3JTKF4mPKgZuEUPpVNtY16dQ6qSi5Vz+otJuOl nyDCNDc1qsfNaTHluYFYj3BUFY1hWL1MTt7iZIR2j3A3P/Ilhl6vGNbBaU7FcL9ltGgo /Xjw== X-Gm-Message-State: ALoCoQnRDYzm34YlLGSwng1bMc6DqH4hSt095T2aeD0uXnkUrO+ZDZdBMrVmVbF6tohMIJnZCeaa X-Received: by 10.236.197.226 with SMTP id t62mr2338565yhn.50.1406913731438; Fri, 01 Aug 2014 10:22:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.25.21 with SMTP id 21ls1458722qgs.58.gmail; Fri, 01 Aug 2014 10:22:11 -0700 (PDT) X-Received: by 10.52.94.36 with SMTP id cz4mr3801891vdb.75.1406913731366; Fri, 01 Aug 2014 10:22:11 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id ti9si7899221vdc.35.2014.08.01.10.22.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 10:22:11 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ij19so7170974vcb.11 for ; Fri, 01 Aug 2014 10:22:11 -0700 (PDT) X-Received: by 10.52.129.200 with SMTP id ny8mr6812475vdb.27.1406913731179; Fri, 01 Aug 2014 10:22:11 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp126873vcb; Fri, 1 Aug 2014 10:22:10 -0700 (PDT) X-Received: by 10.68.245.9 with SMTP id xk9mr7839511pbc.123.1406913730189; Fri, 01 Aug 2014 10:22:10 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id vl8si10501057pbc.51.2014.08.01.10.22.09 for ; Fri, 01 Aug 2014 10:22:10 -0700 (PDT) Received-SPF: none (google.com: linux-samsung-soc-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753543AbaHARWI (ORCPT + 6 others); Fri, 1 Aug 2014 13:22:08 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:39911 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751602AbaHARWH (ORCPT ); Fri, 1 Aug 2014 13:22:07 -0400 Received: from 94.197.121.167.threembb.co.uk ([94.197.121.167] helo=finisterre) by mezzanine.sirena.org.uk with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1XDGWl-0006fW-OA; Fri, 01 Aug 2014 17:22:04 +0000 Received: from broonie by finisterre with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1XDGKz-0003XL-DS; Fri, 01 Aug 2014 18:09:49 +0100 From: Mark Brown To: Vinod Koul , Dan Williams , Tomasz Figa Cc: linux-samsung-soc@vger.kernel.org, dmaengine@vger.kernel.org, linaro-kernel@lists.linaro.org, Mark Brown Date: Fri, 1 Aug 2014 18:09:48 +0100 Message-Id: <1406912988-13562-1-git-send-email-broonie@kernel.org> X-Mailer: git-send-email 2.0.0 X-SA-Exim-Connect-IP: 94.197.121.167 X-SA-Exim-Mail-From: broonie@sirena.org.uk X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mezzanine.sirena.org.uk X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_IP autolearn=ham version=3.3.2 Subject: [PATCH] dma: pl08x: Use correct specifier for size_t values X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: broonie@kernel.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Mark Brown When printing size_t values we should use the %zd or %zx format specifier in order to ensure the value is displayed correctly and avoid warnings from sparse. Signed-off-by: Mark Brown --- drivers/dma/amba-pl08x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index 8114731..8ff32b1 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c @@ -1040,7 +1040,7 @@ static int pl08x_fill_llis_for_desc(struct pl08x_driver_data *pl08x, if (early_bytes) { dev_vdbg(&pl08x->adev->dev, - "%s byte width LLIs (remain 0x%08x)\n", + "%s byte width LLIs (remain 0x%08zx)\n", __func__, bd.remainder); prep_byte_width_lli(pl08x, &bd, &cctl, early_bytes, num_llis++, &total_bytes); @@ -1662,7 +1662,7 @@ static struct dma_async_tx_descriptor *pl08x_prep_dma_cyclic( dma_addr_t slave_addr; dev_dbg(&pl08x->adev->dev, - "%s prepare cyclic transaction of %d/%d bytes %s %s\n", + "%s prepare cyclic transaction of %zd/%zd bytes %s %s\n", __func__, period_len, buf_len, direction == DMA_MEM_TO_DEV ? "to" : "from", plchan->name);