diff options
author | Aaron Crane <arc@aaroncrane.co.uk> | 2014-08-03 21:51:04 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-08-04 18:58:23 -0400 |
commit | 09727a0705b963db727086ce8d9a7fa9edd266c1 (patch) | |
tree | 3a2105813a7879b984bb3b8664774244a65e4953 | |
parent | b1988056fb83dc29d7b05e31f7ccef261dfcadf5 (diff) | |
download | e2fsprogs-09727a0705b963db727086ce8d9a7fa9edd266c1.tar.gz |
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>
-rw-r--r-- | debugfs/dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/debugfs/dump.c b/debugfs/dump.c index 51bc734a..f4f1625f 100644 --- a/debugfs/dump.c +++ b/debugfs/dump.c @@ -272,12 +272,12 @@ static void rdump_inode(ext2_ino_t ino, struct ext2_inode *inode, 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; } } |