diff options
Diffstat (limited to 'e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c')
-rw-r--r-- | e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c b/e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c index 474f07340..3c95829f0 100644 --- a/e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c +++ b/e2fsprogs/old_e2fsprogs/ext2fs/unix_io.c | |||
@@ -544,7 +544,7 @@ static errcode_t unix_read_blk(io_channel channel, unsigned long block, | |||
544 | /* If it's in the cache, use it! */ | 544 | /* If it's in the cache, use it! */ |
545 | if ((cache = find_cached_block(data, block, &reuse[0]))) { | 545 | if ((cache = find_cached_block(data, block, &reuse[0]))) { |
546 | #ifdef DEBUG | 546 | #ifdef DEBUG |
547 | printf("Using cached block %d\n", block); | 547 | printf("Using cached block %lu\n", block); |
548 | #endif | 548 | #endif |
549 | memcpy(cp, cache->buf, channel->block_size); | 549 | memcpy(cp, cache->buf, channel->block_size); |
550 | count--; | 550 | count--; |
@@ -560,7 +560,7 @@ static errcode_t unix_read_blk(io_channel channel, unsigned long block, | |||
560 | if (find_cached_block(data, block+i, &reuse[i])) | 560 | if (find_cached_block(data, block+i, &reuse[i])) |
561 | break; | 561 | break; |
562 | #ifdef DEBUG | 562 | #ifdef DEBUG |
563 | printf("Reading %d blocks starting at %d\n", i, block); | 563 | printf("Reading %d blocks starting at %lu\n", i, block); |
564 | #endif | 564 | #endif |
565 | if ((retval = raw_read_blk(channel, data, block, i, cp))) | 565 | if ((retval = raw_read_blk(channel, data, block, i, cp))) |
566 | return retval; | 566 | return retval; |