diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-15 12:56:51 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-26 12:15:14 -0500 |
commit | 01f7b309e453dc8499c318f6810f76b606b66134 (patch) | |
tree | 7d5d09cbd3e95f9b644859daedecbe2f4cbe797a /drivers/mtd/ubi/cdev.c | |
parent | 49dfc299288fe183b62a3f679a40c91b482d6d73 (diff) |
UBI: improve error messages
Always print error code with error messages, sometimes it is
extremely helpful info.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/cdev.c')
-rw-r--r-- | drivers/mtd/ubi/cdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c index 9771e7f410c1..12777da47d3b 100644 --- a/drivers/mtd/ubi/cdev.c +++ b/drivers/mtd/ubi/cdev.c | |||
@@ -377,7 +377,8 @@ static ssize_t vol_cdev_write(struct file *file, const char __user *buf, | |||
377 | 377 | ||
378 | err = ubi_more_update_data(ubi, vol->vol_id, buf, count); | 378 | err = ubi_more_update_data(ubi, vol->vol_id, buf, count); |
379 | if (err < 0) { | 379 | if (err < 0) { |
380 | ubi_err("cannot write %zd bytes of update data", count); | 380 | ubi_err("cannot write %zd bytes of update data, error %d", |
381 | count, err); | ||
381 | return err; | 382 | return err; |
382 | } | 383 | } |
383 | 384 | ||