arch/powerpc/platforms/512x/clock-commonclk.c:824: wrong % specifier ?

2 messages, 2 authors, 2016-06-27 · open the first message on its own page

arch/powerpc/platforms/512x/clock-commonclk.c:824: wrong % specifier ?

From: David Binderman <hidden>
Date: 2016-06-27 07:59:45

Hello there,

linux-4.7-rc5/arch/powerpc/platforms/512x/clock-commonclk.c:824]:
(warning) %d in format string (no. 1) requires 'int' but the argument
type is 'size_t {aka unsigned long}'.

Source code is

        snprintf(name, sizeof(name), "psc%d", mclk_idx);


Regards

David Binderman

Re: arch/powerpc/platforms/512x/clock-commonclk.c:824: wrong % specifier ?

From: Anatolij Gustschin <agust@denx.de>
Date: 2016-06-27 09:03:54

On Mon, 27 Jun 2016 08:59:42 +0100
David Binderman linuxdev.baldrick@gmail.com wrote:
...
linux-4.7-rc5/arch/powerpc/platforms/512x/clock-commonclk.c:824]:
(warning) %d in format string (no. 1) requires 'int' but the argument
type is 'size_t {aka unsigned long}'.
mpc512x is 32-bit arch, size_t is unsigned int if you build 32-bit
kernel.

thanks,

Anatolij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help