Whamcloud - gitweb
ChangeLog, debugfs.c:
authorTheodore Ts'o <tytso@mit.edu>
Sun, 13 May 2001 02:45:15 +0000 (02:45 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 May 2001 02:45:15 +0000 (02:45 +0000)
  debugfs.c (print_features): Use fputs instead of printf to output
   using the passed-in FILE *.

debugfs/ChangeLog
debugfs/debugfs.c

index 58c74da..e10f40e 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-12  Theodore Tso  <tytso@valinux.com>
+
+       * debugfs.c (print_features): Use fputs instead of printf to
+               output using the passed-in FILE *.
+
 2001-05-09  Theodore Tso  <tytso@valinux.com>
 
        * debugfs.c (do_write, do_mknod): Set the file type information
index 1973ac5..f83071d 100644 (file)
@@ -236,7 +236,7 @@ static void print_features(struct ext2_super_block * s, FILE *f)
        int     i, j, printed=0;
 __u32  *mask = &s->s_feature_compat, m;
 
-       printf ("Filesystem features:");
+       fputs("Filesystem features:", f);
        for (i=0; i <3; i++,mask++) {
                for (j=0,m=1; j < 32; j++, m<<=1) {
                        if (*mask & m) {
@@ -246,8 +246,8 @@ __u32       *mask = &s->s_feature_compat, m;
                }
        }
        if (printed == 0)
-               printf("(none)");
-       printf("\n");
+               fputs("(none)", f);
+       fputs("\n", f);
 }
 
 void do_show_super_stats(int argc, char *argv[])