Re: [PATCH 2/3] mtd: onenand: samsung: Fix printing format for size_t on 64-bit

From: Miquel Raynal
Date: Tue Jan 14 2020 - 12:05:26 EST


On Sun, 2019-12-29 at 18:36:11 UTC, Krzysztof Kozlowski wrote:
> Print size_t as %zu to fix -Wformat warnings when compiling on 64-bit
> platform (e.g. with COMPILE_TEST):
>
> drivers/mtd/nand/onenand/samsung_mtd.c: In function âs5pc110_read_bufferramâ:
> drivers/mtd/nand/onenand/samsung_mtd.c:661:16: warning:
> format â%dâ expects argument of type âintâ, but argument 3 has type âsize_t {aka long unsigned int}â [-Wformat=]
> dev_err(dev, "Couldn't map a %d byte buffer for DMA\n", count);
>
> Signed-off-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel