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: 7797991 Return-Path: X-Original-To: patchwork-linux-media@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 12AD9BEEE1 for ; Tue, 8 Dec 2015 14:16:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 41CC0204FB for ; Tue, 8 Dec 2015 14:16:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5ADFE204B5 for ; Tue, 8 Dec 2015 14:16:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964917AbbLHOQJ (ORCPT ); Tue, 8 Dec 2015 09:16:09 -0500 Received: from mail-lb0-f180.google.com ([209.85.217.180]:35571 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964808AbbLHOQH (ORCPT ); Tue, 8 Dec 2015 09:16:07 -0500 Received: by lbpu9 with SMTP id u9so11712495lbp.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=X1gD+2p8Lh/HQuCJGzfzo0PqpJzpNgxE8fgL3RxR2SkwevrwGlUm8GM5++P+/VZg0j 48KBmbv+wxvRdrhnedYX7amiSh2+6Z//fKBnhOzOUnePm54vgyuxHaN/E8TnpcYfuzEq qlujSN0VIOwwq98wpAza6sFRIAwEcZhhTFQkfP0K+1FlnEmL0blUSzXfajtc4LIRlSLB ob/iRd+K+dpp+T1yoNcwqLoELVZOguWLk3iQPUW/v2JZSsxCgTfv2k2HsSWQuv/DcEtn J+R7N5k5hHg6fxG2z63hYZcn4xCvLF1VgVl+QffeyYct2oMIXhcrCLtDh9jbWo0QJDAK mRRA== X-Gm-Message-State: ALoCoQmYnFe/+3GM0urQvjqWEckp3iFMwRoGHrKYq9j3QFgFnIzPzFS828iEm9ugclhyKC+ubRCdJDWsE011Ar9o/QlE8MbUmw== 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-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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=unavailable 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]); }