From patchwork Tue Dec 8 14:15:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 7798011 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 528E7BEEE1 for ; Tue, 8 Dec 2015 14:18:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 74FC6204E3 for ; Tue, 8 Dec 2015 14:18:28 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AA637204DE for ; Tue, 8 Dec 2015 14:18:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a6J4B-0007Gm-UD; Tue, 08 Dec 2015 14:16:31 +0000 Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a6J48-00078O-BF for linux-arm-kernel@lists.infradead.org; Tue, 08 Dec 2015 14:16:29 +0000 Received: by lbbkw15 with SMTP id kw15so11828522lbb.0 for ; Tue, 08 Dec 2015 06:16:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id; bh=IYl2j4DBGzrZie55yK3emdnTXdwIIQCCxAmr44bqU6A=; b=UzmzCQJZZhlLsHcmsbFHl5m/e2Wae1Nt+AaRvNKQxEfPObTMdIrusCPRRSR6clzGmN bzXRARPFBclYCqZzz4Zj1wiPGLkf6U+hHMs3hTkoWkd9T7JMCgMgeWjMC8It4p5Hh8ci /0obUup7N3CKUhMuuFnY10sfWHWdDeclJRy1s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IYl2j4DBGzrZie55yK3emdnTXdwIIQCCxAmr44bqU6A=; b=Z/N/ARG2C0rnB1mTa3lU9NQXkHHvfbCBjnuJvNkK7ndq1OJn+KmVYHEVqTv6N4Brbu wQtzH/LjcTm5A5vLvFdYL1HxpZlsZhP0VW7NA68GvWdvLXBk+8NW413KKwSdQ7W2f0X1 aL/OIEmVEuxRvTLiOtKAQExA7Tcg7hmhCp1IxnNIeYVcY7Uz2TEM+izCiXQQ2diuAz08 IWRhiQv428LkiXf8Jj9tFy2EgBbC3bS1EAqnVCiEhiTxNGIesA7SJ89w1RWv05ldM8Ur 02mg0Lmp42HtwBtO8Z/0S0be6+UZwHDEHQiqW87aKBIEW8w5zgUcjo+OWCK3QLnrJRpP dxxw== X-Gm-Message-State: ALoCoQmhuMvUFwtiHg2ERNdA+HifDiDDSn9rtnw5isp+/ZEpdk/VJQ9fVkG7XPfmFiWBPuB2H/lyIxCrHW2Qz8zWyFeaGdeCNA== X-Received: by 10.112.167.229 with SMTP id zr5mr31945lbb.117.1449584165388; Tue, 08 Dec 2015 06:16:05 -0800 (PST) Received: from garcia.imf.au.dk ([130.225.20.51]) by smtp.gmail.com with ESMTPSA id 194sm622896lfd.4.2015.12.08.06.16.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Dec 2015 06:16:04 -0800 (PST) From: Rasmus Villemoes To: Kyungmin Park , Sylwester Nawrocki , Mauro Carvalho Chehab , Kukjin Kim , Krzysztof Kozlowski Subject: [PATCH] [media] exynos4-is: fix a format string bug Date: Tue, 8 Dec 2015 15:15:54 +0100 Message-Id: <1449584155-20644-1-git-send-email-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.6.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151208_061628_630202_7EC08DE5 X-CRM114-Status: GOOD ( 13.78 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, Rasmus Villemoes , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_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 Ironically, 7d4020c3c400 ("[media] exynos4-is: fix some warnings when compiling on arm64") fixed some format string bugs but introduced a new one. buf_index is a simple int, so it should be printed with %d, not %pad (which is correctly used for dma_addr_t). Fixes: 7d4020c3c400 ("[media] exynos4-is: fix some warnings when compiling on arm64") Signed-off-by: Rasmus Villemoes --- drivers/media/platform/exynos4-is/fimc-isp-video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/exynos4-is/fimc-isp-video.c b/drivers/media/platform/exynos4-is/fimc-isp-video.c index 6e6648446f00..337d49b4d103 100644 --- a/drivers/media/platform/exynos4-is/fimc-isp-video.c +++ b/drivers/media/platform/exynos4-is/fimc-isp-video.c @@ -221,8 +221,8 @@ static void isp_video_capture_buffer_queue(struct vb2_buffer *vb) ivb->dma_addr[i]; isp_dbg(2, &video->ve.vdev, - "dma_buf %pad (%d/%d/%d) addr: %pad\n", - &buf_index, ivb->index, i, vb->index, + "dma_buf %d (%d/%d/%d) addr: %pad\n", + buf_index, ivb->index, i, vb->index, &ivb->dma_addr[i]); }