[PATCH][mtd-next] mtd: parser: print hex size_t value using correct %zx printk format specifier

Rafał Miłecki rafal at milecki.pl
Fri Jun 23 03:02:34 PDT 2017


On 2017-06-23 11:00, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> Use %zx instead of %X for size_t variable offset, fixes build warning:
> 
> warning: format '%X' expects argument of type 'unsigned int', but 
> argument
> 2 has type 'size_t {aka long unsigned int}' [-Wformat=]
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>

I sent similar patch few hours earlier:
[PATCH] mtd: parsers: trx: fix pr_err format for printing offset
https://patchwork.ozlabs.org/patch/779789/

Brian: you may pick the one with nicer commit message, whichever one you
prefer :)



More information about the linux-mtd mailing list