projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7cf78b
)
pinctrl: st: st_pinconf_dbg_show wrong format string
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sat, 5 Nov 2016 14:25:15 +0000
(15:25 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 8 Nov 2016 13:18:02 +0000
(14:18 +0100)
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>
drivers/pinctrl/pinctrl-st.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pinctrl/pinctrl-st.c
b/drivers/pinctrl/pinctrl-st.c
index 99da4cf91031b49757cc24735057b72c3d4f760e..b926c744193bc98f68fd8ac1faf95a4d7ef2eaba 100644
(file)
--- 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");