mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-27 12:04:43 +08:00
ChangeLog, badblocks.c:
badblocks.c: Make the "done" string include enough spaces to clear out a large block number.
This commit is contained in:
parent
7403335006
commit
00eedba1bd
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user