aboutsummaryrefslogtreecommitdiff
path: root/squashfs-tools
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@squashfs.org.uk>2013-02-12 22:01:21 +0000
committerPhillip Lougher <phillip@squashfs.org.uk>2013-02-14 23:01:29 +0000
commit762194306f77a4201104f65dc5066263e7019456 (patch)
tree9f9022a541ff0c8b28511e0444fdddb4a0f4a440 /squashfs-tools
parent4241d6db6673dbaf0e65336f3e754ba8059ed40e (diff)
downloadsquashfs-tools-762194306f77a4201104f65dc5066263e7019456.tar.gz
mksquashfs: Rewrite write failure error message in write_destination()
Write_bytes() already prints an error message if write() fails, so this error message is largely redundant. So replace with a more user friendly error message that says we're aborting due to failure to write the filesystem image. Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Diffstat (limited to 'squashfs-tools')
-rw-r--r--squashfs-tools/mksquashfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c
index a53095f..b8d9c57 100644
--- a/squashfs-tools/mksquashfs.c
+++ b/squashfs-tools/mksquashfs.c
@@ -974,7 +974,8 @@ void write_destination(int fd, long long byte, int bytes, void *buff)
}
if(write_bytes(fd, buff, bytes) == -1)
- BAD_ERROR("Write on destination failed\n");
+ BAD_ERROR("Failed to write to output %s\n",
+ block_device ? "block device" : "filesystem");
if(!restoring)
pthread_mutex_unlock(&pos_mutex);