From: Huang Shijie Date: Mon, 1 Apr 2013 09:40:18 +0000 (+0800) Subject: mtd: cfi_cmdset_0002: print @adr when write timeout occurs X-Git-Tag: next-20130607~62^2~29 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=95d3c9d1e58d46487f2e3efaaf30228ee52e18a4;p=karo-tx-linux.git mtd: cfi_cmdset_0002: print @adr when write timeout occurs Print out the @adr when the write timeout occurs. This is useful to check if the write timeouts occur at the same address. Signed-off-by: Huang Shijie Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c index fff665d59a0d..89b9d6891532 100644 --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c @@ -1571,8 +1571,8 @@ static int __xipram do_write_buffer(struct map_info *map, struct flchip *chip, xip_enable(map, chip, adr); /* FIXME - should have reset delay before continuing */ - printk(KERN_WARNING "MTD %s(): software timeout\n", - __func__ ); + printk(KERN_WARNING "MTD %s(): software timeout, address:0x%.8lx.\n", + __func__, adr); ret = -EIO; op_done: