From patchwork Sat Nov 5 14:25:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 9413697 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E5BB6022E for ; Sat, 5 Nov 2016 14:30:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD07B2993D for ; Sat, 5 Nov 2016 14:30:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD80F29949; Sat, 5 Nov 2016 14:30:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 6150C2993D for ; Sat, 5 Nov 2016 14:29:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c31vH-0000qh-L5; Sat, 05 Nov 2016 14:26:19 +0000 Received: from mout.gmx.net ([212.227.15.19]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c31vD-0000oU-RJ for linux-arm-kernel@lists.infradead.org; Sat, 05 Nov 2016 14:26:17 +0000 Received: from LT002.fritz.box ([84.119.32.78]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MXIcX-1cNZRG0yxx-00WB6m; Sat, 05 Nov 2016 15:25:31 +0100 From: Heinrich Schuchardt To: Patrice Chotard , Linus Walleij Subject: [PATCH 1/1] pinctrl: st: st_pinconf_dbg_show wrong format string Date: Sat, 5 Nov 2016 15:25:15 +0100 Message-Id: <20161105142515.4377-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.10.1 X-Provags-ID: V03:K0:o2RaEw/oO/2I0aOzMX+NlEo/WK/8MSuTH9o6vUj/SOAK2Hk5qlj YwYQ2POzOt/8RjstfHSpvnticoBOz1VDP60YPh0VbX4KfEz5JDnI54Z6Lals6K58n0RJo3L J5Td+JTyQF8teQ6fVGaQOaaJ/+tlJALVKsM8hN/w73K8od0/kP3AO5+bsrzNYrHDhF2zjSX /Qe70n3nxpAaePn/EiBdg== X-UI-Out-Filterresults: notjunk:1; V01:K0:uKHISqTPtac=:mrVJWd97CB1axyotGm4ocB u2zCJn0NuoicF82DTq50220MQwIjDOaFjiv+BuBhSbgdeu7o9O/9aWbvYMtCoACLWPyZRonl2 7/M8vyfEXx9stXR2uToEZf6wwQZmNmM0DWpW1bbRLJuf3/BTyXA5H1m+lVAjevgj7WjRABqGE lNvYINM0Q15py0o5jvnG7kgfpWf/RTu8Rrg5y/z0vUT1i13MZlBfQ2Xor0hB2eRJ43LB9WSpk 9wAdPpvjKhVuKujQdhDx1vrrhdM9yCBSyuDxSkUrVKuZdFVKH9U/dLyZcrlR1dx/xbBlLN/Aw 9qX1j+dxUhOdF0geqx0WN3uJOe77ZAIU/tnBPkZ+2t/PymzBNy55RanqKtSawcCQ8FuX2aVh1 prm+kNuuDTXlnpFWdo4jlBLVVCrf8FyUw8mgzAkwZo2qsnSQ59pZtd5TXEWcudT5lslN9Txjr ZUER1XmCdNh7KeMOyFkOx8esuqOedZa9gRaCpuFIT6K6XYYDK46xJ7mV0QPxnxKERJ/EMkzGj 4UIDUTCFZ0Sb5bcyR21IpK1aH9TZ3vUCzXahUaO6EzbWQS33tFh5lfbhDMAGn4WuAerOXISXq rfnT5CodwIpx2iaYsQnAvT7UBnZQ/j9RuOTKWkLD9xX2QX3fLioT5ebDm37tVhyy/RVO2oPTP 5iuNUtGis0/i+GnpvidtjSzg6HKVyIa2ZdBzEKshjzk00boR4/3oJaUA2q5hXatFTw1JgUjvF LSifBKX2tELwpHg5M2ITexsBEvw2LwzGNBddxoaLUrySfF8ZpaVJdBD6wnQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161105_072616_278350_881391E7 X-CRM114-Status: UNSURE ( 7.26 ) X-CRM114-Notice: Please train this message. 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: Heinrich Schuchardt , linux-gpio@vger.kernel.org, kernel@stlinux.com, linux-arm-kernel@lists.infradead.org, linux-kernel@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-Virus-Scanned: ClamAV using ClamSMTP function is defined as unsigned int. So we need %u to print it. Signed-off-by: Heinrich Schuchardt Acked-by: Patrice Chotard --- drivers/pinctrl/pinctrl-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index b7bb371..8308f15 100644 --- a/drivers/pinctrl/pinctrl-st.c +++ b/drivers/pinctrl/pinctrl-st.c @@ -1006,7 +1006,7 @@ static void st_pinconf_dbg_show(struct pinctrl_dev *pctldev, function = st_pctl_get_pin_function(pc, offset); if (function) - snprintf(f, 10, "Alt Fn %d", function); + snprintf(f, 10, "Alt Fn %u", function); else snprintf(f, 5, "GPIO");