From patchwork Fri May 13 13:53:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102342 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp281029qge; Fri, 13 May 2016 06:55:01 -0700 (PDT) X-Received: by 10.98.152.71 with SMTP id q68mr12220225pfd.49.1463147700862; Fri, 13 May 2016 06:55:00 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si24653041pfb.152.2016.05.13.06.55.00; Fri, 13 May 2016 06:55:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752888AbcEMNy7 (ORCPT + 4 others); Fri, 13 May 2016 09:54:59 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:59002 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752345AbcEMNy7 (ORCPT ); Fri, 13 May 2016 09:54:59 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0Me5Bm-1bFyDH1WWc-00PvpQ; Fri, 13 May 2016 15:54:09 +0200 From: Arnd Bergmann To: Linus Walleij Cc: Arnd Bergmann , Maxime Coquelin , Patrice Chotard , Laxman Dewangan , Irina Tirdea , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: stm32: fix debugfs format string Date: Fri, 13 May 2016 15:53:38 +0200 Message-Id: <1463147643-568615-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:/7EYLoUCtjaJNtfGQm75oOLtOfcZhgLDhLRcfh0WEQWMuP4I8Ds GpTwzOVVSiFplCtwI2cK/3/TEu9fqeIJOFYqQ+VzncvhgntiNXvH3inu23h/e+fCEUqpgvs 4TVDsdfBn9TW1J/Q8rHt0O7Flya7p4SCHxFwkWjICDQieI6O0eG0KYhtM0tDED+Q9Vf4nnW QeCPsHZtrwjmh5+HFU0tA== X-UI-Out-Filterresults: notjunk:1; V01:K0:8EwUktcqAPM=:pmcS8hG5RIt1qlUnUTXEl/ Z5q7L5IzBtErk0LgAPUWa+AjajirAQYMzUQBLDwyaU5ZukCD1yA5hMV6MChVRQTaPD2/LKjYX ttQF8LZpCk2zoA0RCQRWDB8pUptqr0VR+R5jXZik9hOb+AWsu3mhQvtRFH/L0fD8OZSldL2el 0rNmzCosqAuMn0PbJQbQEHrODw+rSCejaxPPgUCxHmqSePtDUZ2jigPArZNRIldTV+jmQQAK2 pz6P70632UkOszt0Q4KBxMm6K/ZJKYulzTsTv6ZVHHetCXkQS5J6fKLfrBmIgCiUzfKTk8dH9 e9UvAYIbrsmpV7nMYU/YcFOxFYajPOIDssm1ZEvw9yB/iMJBIAKvzewn28Qm2vgimFtjp448P zd5NTSARPEDCUeWC3/fN34z9vpJuUk++ueiJtTgHY42Arj8HxAFv0j2xS/ktZ6zH10wzvLUvN qXbl//lQU6f62Q80TrGqHfpsK4Q2IorBX0mg44XEnOgWgx98bMYwJZvgL9SSX5gj8EN1z1DeX rwtWpA04vkmiMekJmaJgri6U+QBUzaoI0NDRn36F57ZijZJzAYNtvXjY4stjVcWZtMKi5xs01 //izBLKW7IuyVGZCCN1JAfjKLo7Tk28loqDtj+8EDxgeAzz+wO0eG6M0t0gLfNHBEICnm2Ray 5ZJ0ZJyn7vo/PpDAro1HUIc5Zxn+1CflcFA6poHZCfrC7/GM+2r2zkG8+uwMFPZZb+40= Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The newly added stm32_pconf_dbg_show function has an incorrect format string that does not match the arguments, as reported by the gcc warning: drivers/pinctrl/stm32/pinctrl-stm32.c: In function 'stm32_pconf_dbg_show': drivers/pinctrl/stm32/pinctrl-stm32.c:797:17: error: too many arguments for format [-Werror=format-extra-args] This changes the format string in a way that gets rid of the warning. Signed-off-by: Arnd Bergmann Fixes: 3beed93c1617 ("pinctrl: stm32: Implement .pin_config_dbg_show()") --- I could not find a documentation for the debugfs format, so no idea if this is the intended format. --- drivers/pinctrl/stm32/pinctrl-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c index e51c1cf5270b..4ffbe9551299 100644 --- a/drivers/pinctrl/stm32/pinctrl-stm32.c +++ b/drivers/pinctrl/stm32/pinctrl-stm32.c @@ -794,7 +794,7 @@ static void stm32_pconf_dbg_show(struct pinctrl_dev *pctldev, case 2: drive = stm32_pconf_get_driving(bank, offset); speed = stm32_pconf_get_speed(bank, offset); - seq_printf(s, "%d - %s -%s", alt, + seq_printf(s, "%d - %s - %s - %s %s ", alt, drive ? "open drain" : "push pull", biasing[bias], speeds[speed], "speed");