9
0
Fork 0

mtd/mtdraw: fix format specifier for ssize_t

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jan Luebbe 2012-09-07 11:51:21 +02:00 committed by Sascha Hauer
parent d17aed1a07
commit 0223c3a149
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ static ssize_t mtdraw_read(struct cdev *cdev, void *buf, size_t count,
retlen += ret;
}
if (ret < 0)
printf("err %lu\n", ret);
printf("err %zd\n", ret);
else
ret = retlen;
return ret;