From: Theodore Ts'o Date: Sun, 13 May 2001 02:45:15 +0000 (+0000) Subject: ChangeLog, debugfs.c: X-Git-Tag: E2FSPROGS-1_20~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=777ebb3e51b1c7ec0d7c5a457ef04d40f61b6c30;p=thirdparty%2Fe2fsprogs.git ChangeLog, debugfs.c: debugfs.c (print_features): Use fputs instead of printf to output using the passed-in FILE *. --- diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog index 58c74da80..e10f40e3f 100644 --- a/debugfs/ChangeLog +++ b/debugfs/ChangeLog @@ -1,3 +1,8 @@ +2001-05-12 Theodore Tso + + * debugfs.c (print_features): Use fputs instead of printf to + output using the passed-in FILE *. + 2001-05-09 Theodore Tso * debugfs.c (do_write, do_mknod): Set the file type information diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index 1973ac53a..f83071d57 100644 --- a/debugfs/debugfs.c +++ b/debugfs/debugfs.c @@ -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[])