bug in error message

Fabio Estevam festevam at gmail.com
Sat Jul 16 16:43:49 PDT 2016


On Sat, Jul 16, 2016 at 6:51 PM, Frank Mori Hess <fmh6jj at gmail.com> wrote:
> There is a bug in arch/arm/mm/dma-mapping.c where it prints a number
> in an error message in hex when it should be decimal:
>
> pr_err("DMA: failed to allocate %zx KiB pool for atomic coherent allocation\n",
>         atomic_pool_size / 1024);
>
> patch (literally one character) here:
>
> https://github.com/fmhess/linux/commit/dce53a26afe31c63b88bc5b5c75b41ec86579291

Your proposed fix is not correct. You should use %zu instead.

Thanks for reporting it anyway. Will submit a patch.



More information about the linux-arm-kernel mailing list