Whamcloud - gitweb
ChangeLog, badblocks.c:
authorTheodore Ts'o <tytso@mit.edu>
Sat, 3 Jul 1999 00:45:58 +0000 (00:45 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 3 Jul 1999 00:45:58 +0000 (00:45 +0000)
  badblocks.c: Make the "done" string include enough spaces to clear out
   a large block number.

misc/ChangeLog
misc/badblocks.c

index 668b4c5..da3c7bb 100644 (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
index f955193..d312cd2 100644 (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);
        }
 }