diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/mtdoops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c index 62ee2043d046..f8af627f0b98 100644 --- a/drivers/mtd/mtdoops.c +++ b/drivers/mtd/mtdoops.c | |||
@@ -104,7 +104,7 @@ static int mtdoops_inc_counter(struct mtdoops_context *cxt) | |||
104 | ret = mtd->read(mtd, cxt->nextpage * OOPS_PAGE_SIZE, 4, | 104 | ret = mtd->read(mtd, cxt->nextpage * OOPS_PAGE_SIZE, 4, |
105 | &retlen, (u_char *) &count); | 105 | &retlen, (u_char *) &count); |
106 | if ((retlen != 4) || (ret < 0)) { | 106 | if ((retlen != 4) || (ret < 0)) { |
107 | printk(KERN_ERR "mtdoops: Read failure at %d (%d of 4 read)" | 107 | printk(KERN_ERR "mtdoops: Read failure at %d (%td of 4 read)" |
108 | ", err %d.\n", cxt->nextpage * OOPS_PAGE_SIZE, | 108 | ", err %d.\n", cxt->nextpage * OOPS_PAGE_SIZE, |
109 | retlen, ret); | 109 | retlen, ret); |
110 | return 1; | 110 | return 1; |
@@ -273,7 +273,7 @@ static void mtdoops_console_sync(void) | |||
273 | cxt->writecount = 0; | 273 | cxt->writecount = 0; |
274 | 274 | ||
275 | if ((retlen != OOPS_PAGE_SIZE) || (ret < 0)) | 275 | if ((retlen != OOPS_PAGE_SIZE) || (ret < 0)) |
276 | printk(KERN_ERR "mtdoops: Write failure at %d (%d of %d written), err %d.\n", | 276 | printk(KERN_ERR "mtdoops: Write failure at %d (%td of %d written), err %d.\n", |
277 | cxt->nextpage * OOPS_PAGE_SIZE, retlen, OOPS_PAGE_SIZE, ret); | 277 | cxt->nextpage * OOPS_PAGE_SIZE, retlen, OOPS_PAGE_SIZE, ret); |
278 | 278 | ||
279 | ret = mtdoops_inc_counter(cxt); | 279 | ret = mtdoops_inc_counter(cxt); |