debugfs: be more specific in error messages
Signed-off-by: Aaron Crane <arc@aaroncrane.co.uk>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
diff --git a/debugfs/dump.c b/debugfs/dump.c
index 51bc734..f4f1625 100644
--- a/debugfs/dump.c
+++ b/debugfs/dump.c
@@ -272,12 +272,12 @@
int fd;
fd = open(fullname, O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, S_IRWXU);
if (fd == -1) {
- com_err("rdump", errno, "while dumping %s", fullname);
+ com_err("rdump", errno, "while opening %s", fullname);
goto errout;
}
dump_file("rdump", ino, fd, 1, fullname);
if (close(fd) != 0) {
- com_err("rdump", errno, "while dumping %s", fullname);
+ com_err("rdump", errno, "while closing %s", fullname);
goto errout;
}
}