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>
This commit is contained in:
Rickard Strandqvist 2014-06-26 18:58:46 +02:00 коммит произвёл Linus Walleij
Родитель 719e231bed
Коммит bf4cef6c70
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -780,7 +780,7 @@ static int pcs_add_pin(struct pcs_device *pcs, unsigned offset,
pin = &pcs->pins.pa[i]; pin = &pcs->pins.pa[i];
pn = &pcs->names[i]; pn = &pcs->names[i];
sprintf(pn->name, "%lx.%d", sprintf(pn->name, "%lx.%u",
(unsigned long)pcs->res->start + offset, pin_pos); (unsigned long)pcs->res->start + offset, pin_pos);
pin->name = pn->name; pin->name = pn->name;
pin->number = i; pin->number = i;