diff options
author | Miles Bader <miles@gnu.org> | 1996-02-03 21:16:01 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-02-03 21:16:01 +0000 |
commit | 8ae21a74b0ff86da7d5a3bcf705b7d182d83fc7a (patch) | |
tree | a9faf60eeb925d04a1bc6ab7119beb835f5bd9a5 | |
parent | 7db38fdaef361c6010aa216f17c3b753f47fbef4 (diff) |
(get_hypermetadata, diskfs_readonly_changed):
Use ext2_warning to print warnings instead of error().
-rw-r--r-- | ext2fs/hyper.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/ext2fs/hyper.c b/ext2fs/hyper.c index ed7eeb3c..28443420 100644 --- a/ext2fs/hyper.c +++ b/ext2fs/hyper.c @@ -128,14 +128,11 @@ get_hypermetadata (void) ext2fs_clean = sblock->s_state & EXT2_VALID_FS; if (! ext2fs_clean) { - /* XXX syslog */ - error (0, 0, "%s: FILESYSTEM NOT UNMOUNTED CLEANLY; PLEASE fsck", - diskfs_device_arg); + ext2_warning ("FILESYSTEM NOT UNMOUNTED CLEANLY; PLEASE fsck"); if (! diskfs_readonly) { diskfs_readonly = 1; - error (0, 0, "%s: MOUNTED READ-ONLY; MUST USE `fsysopts --writable'", - diskfs_device_arg); + ext2_warning ("MOUNTED READ-ONLY; MUST USE `fsysopts --writable'"); } } @@ -185,8 +182,6 @@ diskfs_readonly_changed (int readonly) sync_super_block (); } else - /* XXX syslog */ - error (0, 0, "%s: WARNING: UNCLEANED FILESYSTEM NOW WRITABLE", - diskfs_device_arg); + ext2_warning ("UNCLEANED FILESYSTEM NOW WRITABLE"); } } |