From 777ebb3e51b1c7ec0d7c5a457ef04d40f61b6c30 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 13 May 2001 02:45:15 +0000 Subject: [PATCH] ChangeLog, debugfs.c: debugfs.c (print_features): Use fputs instead of printf to output using the passed-in FILE *. --- debugfs/ChangeLog | 5 +++++ debugfs/debugfs.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog index 58c74da..e10f40e 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 1973ac5..f83071d 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[]) -- 1.8.3.1