aboutsummaryrefslogtreecommitdiff
path: root/e2fsck/pass3.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2000-08-22 21:41:52 +0000
committerTheodore Ts'o <tytso@mit.edu>2000-08-22 21:41:52 +0000
commit99a2cc969fb47e8c87965aa9fb93cabf6fe4ac1e (patch)
tree6e9f0196759808e629347d5ccaa0029da071df23 /e2fsck/pass3.c
parent243dc31f486f97e90845f389693b46b19d087f50 (diff)
downloade2fsprogs-99a2cc969fb47e8c87965aa9fb93cabf6fe4ac1e.tar.gz
ChangeLog, jfs_compat.h, journal.c, pass3.c:
jfs_compat.h (J_ASSERT): journal.c (e2fsck_run_ext3_journal): pass3.c (adjust_inode_count): Use fatal_error() instead of exit(). ChangeLog, super.c: super.c (release_orphan_inodes): Fix typo; should do bounds checking on next_ino instead of ino.
Diffstat (limited to 'e2fsck/pass3.c')
-rw-r--r--e2fsck/pass3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/e2fsck/pass3.c b/e2fsck/pass3.c
index e3cd8d16..9344e55a 100644
--- a/e2fsck/pass3.c
+++ b/e2fsck/pass3.c
@@ -581,9 +581,8 @@ static errcode_t adjust_inode_count(e2fsck_t ctx, ino_t ino, int adj)
inode.i_links_count--;
} else {
/* Should never happen */
- printf(_("Debug error in e2fsck adjust_inode_count, "
- "should never happen.\n"));
- exit(1);
+ fatal_error(ctx, _("Debug error in e2fsck adjust_inode_count, "
+ "should never happen.\n"));
}
retval = ext2fs_write_inode(fs, ino, &inode);