2001-08-15 Theodore Tso <tytso@valinux.com>
+ * tune2fs.c: Make sure that error messages are sent to stderr, and
+ normal messages are sent to stdout. (Addresses Debian bug
+ #108555.)
+
* fsck.8.in: Fixed error in synopsis of the man page.
* fsck.c (check_all): Don't bother to interpret a device where the
goto no_valid_journal;
}
if (!(jfs->super->s_feature_incompat & EXT3_FEATURE_INCOMPAT_JOURNAL_DEV)) {
- fprintf(stderr, "%s is not a journal device.\n",
+ fprintf(stderr, _("%s is not a journal device.\n"),
journal_device);
goto no_valid_journal;
}
break;
}
if (i >= nr_users) {
- fprintf(stderr, "Filesystem's UUID not found on journal device.\n");
+ fprintf(stderr,
+ _("Filesystem's UUID not found on journal device.\n"));
commit_remove_journal = 1;
goto no_valid_journal;
}
no_valid_journal:
if (commit_remove_journal == 0) {
- printf(_("Journal NOT removed\n"));
+ fprintf(stderr, _("Journal NOT removed\n"));
exit(1);
}
fs->super->s_journal_dev = 0;
retval = ext2fs_add_journal_inode(fs, journal_blocks,
journal_flags);
if (retval) {
- printf("\n");
+ fprintf(stderr, "\n");
com_err(program_name, retval,
_("\n\twhile trying to create journal file"));
exit(1);
struct group * gr;
struct passwd * pw;
- fprintf (stderr, _("tune2fs %s, %s for EXT2 FS %s, %s\n"),
+ printf(_("tune2fs %s, %s for EXT2 FS %s, %s\n"),
E2FSPROGS_VERSION, E2FSPROGS_DATE,
EXT2FS_VERSION, EXT2FS_DATE);
while ((c = getopt (argc, argv, "c:e:fg:i:jlm:r:s:u:C:J:L:M:O:U:")) != EOF)
if (retval) {
com_err (program_name, retval, _("while trying to open %s"),
device_name);
- printf(_("Couldn't find valid filesystem superblock.\n"));
+ fprintf(stderr,
+ _("Couldn't find valid filesystem superblock.\n"));
exit(1);
}
sb = fs->super;