projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'md/3.12' of git://neil.brown.name/md
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
mtd
/
tests
/
mtd_test.c
diff --git
a/drivers/mtd/tests/mtd_test.c
b/drivers/mtd/tests/mtd_test.c
index 4c2e3f0bb9531b34087b2027478c18570ce6bf19..c818a63532e774035e7f81d748622c0b21810c2a 100644
(file)
--- a/
drivers/mtd/tests/mtd_test.c
+++ b/
drivers/mtd/tests/mtd_test.c
@@
-107,6
+107,8
@@
int mtdtest_write(struct mtd_info *mtd, loff_t addr, size_t size,
err = mtd_write(mtd, addr, size, &written, buf);
if (!err && written != size)
err = -EIO;
+ if (err)
+ pr_err("error: write failed at %#llx\n", addr);
return err;
}