Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1400121

[PATCH 1/2] pinctrl: stm32: fix warning

From <patrice.chotard@st.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] pinctrl: stm32: fix warning
Date 2016-05-12 16:50 +0200
Message-ID <ry066-7Wu-13@gated-at.bofh.it> (permalink)
References <ry066-7Wu-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Patrice Chotard <patrice.chotard@st.com>

fix compilation warning :
drivers/pinctrl/stm32/pinctrl-stm32.c:823:7: warning: too many arguments for format [-Wformat-extra-args]
           speeds[speed], "speed");

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
---
 drivers/pinctrl/stm32/pinctrl-stm32.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c
index 1527740..249da52 100644
--- a/drivers/pinctrl/stm32/pinctrl-stm32.c
+++ b/drivers/pinctrl/stm32/pinctrl-stm32.c
@@ -806,21 +806,21 @@ static void stm32_pconf_dbg_show(struct pinctrl_dev *pctldev,
 		drive = stm32_pconf_get_driving(bank, offset);
 		speed = stm32_pconf_get_speed(bank, offset);
 		val = stm32_pconf_output_get(bank, offset);
-		seq_printf(s, "- %s - %s - %s - %s %s",
+		seq_printf(s, "- %s - %s - %s - %s speed",
 			   val ? "high" : "low",
 			   drive ? "open drain" : "push pull",
 			   biasing[bias],
-			   speeds[speed], "speed");
+			   speeds[speed]);
 		break;
 
 	/* alternate */
 	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 speed", alt,
 			   drive ? "open drain" : "push pull",
 			   biasing[bias],
-			   speeds[speed], "speed");
+			   speeds[speed]);
 		break;
 
 	/* analog */
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] pinctrl: stm32: .pin_config_dbg_show fixes <patrice.chotard@st.com> - 2016-05-12 16:50 +0200
  [PATCH 2/2] pinctrl: stm32: factorize stm32_pconf_input/output_get() <patrice.chotard@st.com> - 2016-05-12 16:50 +0200
  [PATCH 1/2] pinctrl: stm32: fix warning <patrice.chotard@st.com> - 2016-05-12 16:50 +0200
  Re: [PATCH 0/2] pinctrl: stm32: .pin_config_dbg_show fixes Linus Walleij <linus.walleij@linaro.org> - 2016-05-24 13:10 +0200
    Re: [PATCH 0/2] pinctrl: stm32: .pin_config_dbg_show fixes Patrice Chotard <patrice.chotard@st.com> - 2016-05-24 13:20 +0200

csiph-web