ChangeLog, badblocks.c:

badblocks.c: Make the "done" string include enough spaces to clear out
  	a large block number.
This commit is contained in:
Theodore Ts'o 1999-07-03 00:45:58 +00:00
parent 7403335006
commit 00eedba1bd
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
1999-07-01 <tytso@valinux.com>
* badblocks.c: Make the "done" string include enough spaces to
clear out a large block number.
1999-06-29 <tytso@valinux.com>
* mke2fs.c (check_mount): Allow a filesystem to be made even if it

View File

@ -45,6 +45,7 @@
#include "ext2fs/ext2_io.h"
const char * program_name = "badblocks";
const char * done_string = "done \n";
int v_flag = 0; /* verbose */
int w_flag = 0; /* do r/w test */
@ -173,7 +174,7 @@ static void test_ro (int dev, unsigned long blocks_count,
num_blocks = 0;
alarm(0);
if (s_flag || v_flag > 1)
fprintf(stderr, "done \n");
fprintf(stderr, done_string);
fflush (stderr);
free (blkbuf);
}
@ -227,7 +228,7 @@ static void test_rw (int dev, unsigned long blocks_count,
num_blocks = 0;
alarm (0);
if (s_flag | v_flag)
fprintf(stderr, "done \n");
fprintf(stderr, done_string);
flush_bufs (dev, 1);
if (s_flag | v_flag)
fprintf (stderr, "Reading and comparing: ");
@ -255,7 +256,7 @@ static void test_rw (int dev, unsigned long blocks_count,
num_blocks = 0;
alarm (0);
if (s_flag | v_flag)
fprintf(stderr, "done \n");
fprintf(stderr, done_string);
flush_bufs (dev, 0);
}
}