Message ID | 1450687321-12381-30-git-send-email-yangds.fnst@cn.fujitsu.com |
---|---|
State | Not Applicable |
Delegated to: | David Oberhollenzer |
Headers | show |
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;