Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1431791 > unrolled thread
| Started by | David Binderman <linuxdev.baldrick@gmail.com> |
|---|---|
| First post | 2016-06-27 10:00 +0200 |
| Last post | 2016-06-27 11:10 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
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
| From | David Binderman <linuxdev.baldrick@gmail.com> |
|---|---|
| Date | 2016-06-27 10:00 +0200 |
| Subject | arch/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]
| From | Anatolij Gustschin <agust@denx.de> |
|---|---|
| Date | 2016-06-27 11:10 +0200 |
| Subject | Re: 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