diff options
Diffstat (limited to '')
-rw-r--r-- | util-linux/fsck_minix.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index db44848b8..422cae3de 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c | |||
@@ -456,12 +456,13 @@ static void read_block(unsigned int nr, char *addr) | |||
456 | return; | 456 | return; |
457 | } | 457 | } |
458 | if (BLOCK_SIZE * nr != lseek(IN, BLOCK_SIZE * nr, SEEK_SET)) { | 458 | if (BLOCK_SIZE * nr != lseek(IN, BLOCK_SIZE * nr, SEEK_SET)) { |
459 | printf("Read error: unable to seek to block in file '%s'\n", | 459 | printf("%s: unable to seek to block in file '%s'\n", |
460 | current_name); | 460 | bb_msg_read_error, current_name); |
461 | errors_uncorrected = 1; | 461 | errors_uncorrected = 1; |
462 | memset(addr, 0, BLOCK_SIZE); | 462 | memset(addr, 0, BLOCK_SIZE); |
463 | } else if (BLOCK_SIZE != read(IN, addr, BLOCK_SIZE)) { | 463 | } else if (BLOCK_SIZE != read(IN, addr, BLOCK_SIZE)) { |
464 | printf("Read error: bad block in file '%s'\n", current_name); | 464 | printf("%s: bad block in file '%s'\n", |
465 | bb_msg_read_error, current_name); | ||
465 | errors_uncorrected = 1; | 466 | errors_uncorrected = 1; |
466 | memset(addr, 0, BLOCK_SIZE); | 467 | memset(addr, 0, BLOCK_SIZE); |
467 | } | 468 | } |
@@ -483,7 +484,8 @@ static void write_block(unsigned int nr, char *addr) | |||
483 | if (BLOCK_SIZE * nr != lseek(IN, BLOCK_SIZE * nr, SEEK_SET)) | 484 | if (BLOCK_SIZE * nr != lseek(IN, BLOCK_SIZE * nr, SEEK_SET)) |
484 | die("seek failed in write_block"); | 485 | die("seek failed in write_block"); |
485 | if (BLOCK_SIZE != write(IN, addr, BLOCK_SIZE)) { | 486 | if (BLOCK_SIZE != write(IN, addr, BLOCK_SIZE)) { |
486 | printf("Write error: bad block in file '%s'\n", current_name); | 487 | printf("%s: bad block in file '%s'\n", |
488 | bb_msg_write_error, current_name); | ||
487 | errors_uncorrected = 1; | 489 | errors_uncorrected = 1; |
488 | } | 490 | } |
489 | } | 491 | } |