Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1431791 > unrolled thread

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

Started byDavid Binderman <linuxdev.baldrick@gmail.com>
First post2016-06-27 10:00 +0200
Last post2016-06-27 11:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  arch/powerpc/platforms/512x/clock-commonclk.c:824: wrong % specifier ? David Binderman <linuxdev.baldrick@gmail.com> - 2016-06-27 10:00 +0200
    Re: arch/powerpc/platforms/512x/clock-commonclk.c:824: wrong %  specifier ? Anatolij Gustschin <agust@denx.de> - 2016-06-27 11:10 +0200

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

FromDavid Binderman <linuxdev.baldrick@gmail.com>
Date2016-06-27 10:00 +0200
Subjectarch/powerpc/platforms/512x/clock-commonclk.c:824: wrong % specifier ?
Message-ID<rOzCx-5JR-9@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


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

FromAnatolij Gustschin <agust@denx.de>
Date2016-06-27 11:10 +0200
SubjectRe: arch/powerpc/platforms/512x/clock-commonclk.c:824: wrong % specifier ?
Message-ID<rOAIi-6Df-15@gated-at.bofh.it>
In reply to#1431791
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web