diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2016-11-05 15:25:15 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-11-08 14:18:02 +0100 |
commit | fdcf83552ab1051f3a0b71a7d5c2e242f97b4157 (patch) | |
tree | d0cbc4ae02bd2826325d0f84b80138f8eed68912 | |
parent | f7cf78b95360475f7592145d21b665256fd44827 (diff) | |
download | linux-fdcf83552ab1051f3a0b71a7d5c2e242f97b4157.tar.gz linux-fdcf83552ab1051f3a0b71a7d5c2e242f97b4157.tar.bz2 linux-fdcf83552ab1051f3a0b71a7d5c2e242f97b4157.zip |
pinctrl: st: st_pinconf_dbg_show wrong format string
function is defined as unsigned int.
So we need %u to print it.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/pinctrl-st.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index 99da4cf91031..b926c744193b 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"); |