[PATCH 29/38] ubifs: fix typo in ubifs_read
Dongsheng Yang
yangds.fnst at cn.fujitsu.com
Mon Dec 21 00:41:52 PST 2015
From: David Gstir <david at sigma-star.at>
Signed-off-by: Richard Weinberger <richard at nod.at>
---
ubifs-utils/lib/io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ubifs-utils/lib/io.c b/ubifs-utils/lib/io.c
index d05cf86..c2e0d63 100644
--- a/ubifs-utils/lib/io.c
+++ b/ubifs-utils/lib/io.c
@@ -145,7 +145,7 @@ int ubifs_read(loff_t offset, int len, void *buf)
return sys_err_msg("lseek failed seeking %"PRIdoff_t, offset);
if (read(out_fd, buf, len) != len)
- return sys_err_msg("write failed writing %d bytes at pos %"PRIdoff_t,
+ return sys_err_msg("read failed reading %d bytes at pos %"PRIdoff_t,
len, offset);
return 0;
--
1.8.4.2
More information about the linux-mtd
mailing list