Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: pinctrl-single.c: Cleaning up wrong format string usage

%d in format string used, but the type is unsigned int

This was found using a static code analysis program called cppcheck

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Rickard Strandqvist and committed by
Linus Walleij
bf4cef6c 719e231b

+1 -1
+1 -1
drivers/pinctrl/pinctrl-single.c
··· 780 780 781 781 pin = &pcs->pins.pa[i]; 782 782 pn = &pcs->names[i]; 783 - sprintf(pn->name, "%lx.%d", 783 + sprintf(pn->name, "%lx.%u", 784 784 (unsigned long)pcs->res->start + offset, pin_pos); 785 785 pin->name = pn->name; 786 786 pin->number = i;