[PATCH] ARM: dma-mapping: Use %zu for printing a size_t variable
Russell King - ARM Linux
linux at armlinux.org.uk
Mon Jul 18 09:11:42 PDT 2016
On Mon, Jul 18, 2016 at 06:03:05PM +0200, Matthias Brugger wrote:
>
>
> On 07/17/2016 02:10 AM, Fabio Estevam wrote:
> >- pr_err("DMA: failed to allocate %zx KiB pool for atomic coherent allocation\n",
> >+ pr_err("DMA: failed to allocate %zu KiB pool for atomic coherent allocation\n",
>
> size_t should be formated as %zu or %zx so %zx is fine here.
However, when it prints:
DMA: failed to allocate 100 KiB pool for atomic coherent allocation
how are you going to interpret it if you don't know the format string?
This change is exactly the right thing to do here.
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
More information about the linux-arm-kernel
mailing list