diff options
author | Theodore Ts'o <tytso@mit.edu> | 2003-04-03 11:37:46 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2003-04-03 11:37:46 -0500 |
commit | cc4f98ed2deeaca33244fd77386e7d76917a3d30 (patch) | |
tree | 40398e39fad0817d2a9622e30019135edf9f6bbf /misc/badblocks.c | |
parent | edab294f1cc70f296dad0e5ac30e805cfccf3146 (diff) | |
download | e2fsprogs-cc4f98ed2deeaca33244fd77386e7d76917a3d30.tar.gz |
badblocks.c (bb_output): Flush output to the badblocks
output file as bad blocks are discovered.
Diffstat (limited to 'misc/badblocks.c')
-rw-r--r-- | misc/badblocks.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/badblocks.c b/misc/badblocks.c index c6e308ee..ba3db875 100644 --- a/misc/badblocks.c +++ b/misc/badblocks.c @@ -87,7 +87,8 @@ static int bb_output (unsigned long bad) if (ext2fs_badblocks_list_test(bb_list, bad)) return 0; - fprintf (out, "%lu\n", bad); + fprintf(out, "%lu\n", bad); + fflush(out); errcode = ext2fs_badblocks_list_add (bb_list, bad); if (errcode) { |