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>
test-maint
Aaron Crane 2014-08-03 21:51:04 -04:00 committed by Theodore Ts'o
parent b1988056fb
commit 09727a0705
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}