MTD: m25p80: fix printk format warning
PATCH 1/1 MTD: m25p80: fix printk format warning
From: Randy Dunlap <[email protected]>
Fix printk format warning:drivers/mtd/devices/m25p80.c:189: warning: format '%zd' expects type 'signed size_t', but argument 6 has type 'u_int32_t'
--- drivers/mtd/devices/m25p80.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/devices/m25p80.c +1 -1
@@ -186,7 +186,7 @@ static int m25p80_erase(struct mtd_infostruct m25p *flash =mtd_to_m25p (mtd);u32 addr,len; -DEBUG (MTD_DEBUG_LEVEL2 ,"%s: %s %s 0x%08x, len %zd\n" , +DEBUG (MTD_DEBUG_LEVEL2 ,"%s: %s %s 0x%08x, len %d\n" , flash->spi->dev.bus_id, __FUNCTION__,"at" , (u32 )instr->addr, instr->len);
---
Quoted 3 lines · Randy.Dunlap
Fix printk format warning:
drivers/mtd/devices/m25p80.c:189: warning: format '%zd' expects type 'signedsize_t', but argument 6 has type 'u_int32_t'
Thanks, this is already fixed in one of the oft-sent, oft-ignored MTD patches in -mm.
Quoted 7 lines · Andrew Morton
Quoted 3 lines · Randy.Dunlap
Fix printk format warning:
drivers/mtd/devices/m25p80.c:189: warning: format '%zd' expects type 'signedsize_t', but argument 6 has type 'u_int32_t'Thanks, this is already fixed in one of the oft-sent, oft-ignored MTD patches in -mm.
They aren't ignored by everyone. And I believe the maintainers are planning on syncing in 2.6.17.
I try to at least Ack patches that look sane to me, but my opinion doesn't count all that much.
josh