summaryrefslogtreecommitdiffstats
path: root/disk-utils/mkfs.cramfs.c
diff options
context:
space:
mode:
authorBenno Schulenberg2011-08-10 20:55:48 +0200
committerKarel Zak2011-08-15 15:49:18 +0200
commitf770a404bf6b28fed610c038e023b0ae606a9d69 (patch)
tree1ab598419ebecc3591dda9db3732a6dd05520a91 /disk-utils/mkfs.cramfs.c
parentpartx: do not print null (diff)
downloadkernel-qcow2-util-linux-f770a404bf6b28fed610c038e023b0ae606a9d69.tar.gz
kernel-qcow2-util-linux-f770a404bf6b28fed610c038e023b0ae606a9d69.tar.xz
kernel-qcow2-util-linux-f770a404bf6b28fed610c038e023b0ae606a9d69.zip
mkfs.cramfs: clearer error message, "cannot close" instead of "closing"
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'disk-utils/mkfs.cramfs.c')
-rw-r--r--disk-utils/mkfs.cramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/mkfs.cramfs.c b/disk-utils/mkfs.cramfs.c
index 9bb9153d8..519363419 100644
--- a/disk-utils/mkfs.cramfs.c
+++ b/disk-utils/mkfs.cramfs.c
@@ -665,7 +665,7 @@ static unsigned int write_file(char *file, char *base, unsigned int offset)
memcpy(base + offset, buf, image_length);
munmap(buf, image_length);
if (close (fd) < 0)
- err(MKFS_ERROR, _("closing file %s"), file);
+ err(MKFS_ERROR, _("cannot close file %s"), file);
/* Pad up the image_length to a 4-byte boundary */
while (image_length & 3) {
*(base + offset + image_length) = '\0';