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: 7797971 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 A141FBEEE1 for ; Tue, 8 Dec 2015 14:16:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CFB3E2026F for ; Tue, 8 Dec 2015 14:16:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB94520377 for ; Tue, 8 Dec 2015 14:16:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964904AbbLHOQI (ORCPT ); Tue, 8 Dec 2015 09:16:08 -0500 Received: from mail-lb0-f181.google.com ([209.85.217.181]:35571 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964805AbbLHOQH (ORCPT ); Tue, 8 Dec 2015 09:16:07 -0500 Received: by lbpu9 with SMTP id u9so11712449lbp.2 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=keL4SsHYYHhh3TKvLbjnaqUBOIdHFz9K3K5kKEJMIwvi2uleSSFHkrbckXm85uHk3R 4gmPqJnqjvpEs8dNVoxa64bsxBq0rEYy5GVb0biTy7oTcYscUy11fTu2OH25pavrfdUP aKNSuxIqTeP7riqKPxXClFx9Mincn+35MX88ypJkVFWsl6Khr8qiV1wl2jbepPYU3XNy gjr/GvgFG4whbTRmStC8ouUbbAq5jBUxB+rQ7GuNUEXZFdZ8XZh9T3tw9CIVI7PPx05l +Har6GEDiaakBOL8bflPSyNjW/kL/BblXN9H7XhAPI2xhwZptEmzXrjoV1jbNEOJxsZa 1N/Q== X-Gm-Message-State: ALoCoQlKyuZvouxNS9RpGMZw4CzYlroOuaO9LwD0KfIs/F9rVxmeErH9auAIMevyAbbPnxgPTAo+HSraxxlOC13mquTsW3twkA== 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 Cc: Rasmus Villemoes , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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]); }