summaryrefslogtreecommitdiff
path: root/drivers/mtd/tests/mtd_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/tests/mtd_test.c')
-rw-r--r--drivers/mtd/tests/mtd_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/tests/mtd_test.c b/drivers/mtd/tests/mtd_test.c
index 4c2e3f0bb953..c818a63532e7 100644
--- 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;
}