Whamcloud - gitweb
ChangeLog, test_io.c:
authorTheodore Ts'o <tytso@mit.edu>
Tue, 5 Dec 2000 03:53:41 +0000 (03:53 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 5 Dec 2000 03:53:41 +0000 (03:53 +0000)
  test_io.c (test_write_blk, test_write_byte): Fix typos pointed out by
   Andreas Dilger.

lib/ext2fs/ChangeLog
lib/ext2fs/test_io.c

index 0ade399..9f931d1 100644 (file)
@@ -1,3 +1,8 @@
+2000-11-21    <tytso@snap.thunk.org>
+
+       * test_io.c (test_write_blk, test_write_byte): Fix typos pointed
+               out by Andreas Dilger.
+
 2000-11-05    <tytso@snap.thunk.org>
 
        * imager.c (ext2fs_image_{inode,super,bitmap}_{read,write},
index 56ffb47..7c77624 100644 (file)
@@ -215,10 +215,10 @@ static errcode_t test_write_blk(io_channel channel, unsigned long block,
 
        if (data->real)
                retval = io_channel_write_blk(data->real, block, count, buf);
-       if (data->write_byte)
-               data->write_byte(block, count, retval);
+       if (data->write_blk)
+               data->write_blk(block, count, retval);
        else
-               printf("Test_io: write_byte(%lu, %d) returned %s\n",
+               printf("Test_io: write_blk(%lu, %d) returned %s\n",
                       block, count, retval ? error_message(retval) : "OK");
        return retval;
 }
@@ -238,7 +238,7 @@ static errcode_t test_write_byte(io_channel channel, unsigned long offset,
        if (data->write_byte)
                data->write_byte(offset, count, retval);
        else
-               printf("Test_io: write_blk(%lu, %d) returned %s\n",
+               printf("Test_io: write_byte(%lu, %d) returned %s\n",
                       offset, count, retval ? error_message(retval) : "OK");
        return retval;
 }