mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
mkfs_vfat: use bb_error_msg for logging, not bb_info_msg
This affects only a commented-out code section which searches for bad blocks Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
cde1199e01
commit
3b757f0798
@ -578,7 +578,7 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
start_data_sector = (reserved_sect + NUM_FATS * sect_per_fat) * (bytes_per_sect / SECTOR_SIZE);
|
start_data_sector = (reserved_sect + NUM_FATS * sect_per_fat) * (bytes_per_sect / SECTOR_SIZE);
|
||||||
start_data_block = (start_data_sector + SECTORS_PER_BLOCK - 1) / SECTORS_PER_BLOCK;
|
start_data_block = (start_data_sector + SECTORS_PER_BLOCK - 1) / SECTORS_PER_BLOCK;
|
||||||
|
|
||||||
bb_info_msg("searching for bad blocks ");
|
bb_error_msg("searching for bad blocks");
|
||||||
currently_testing = 0;
|
currently_testing = 0;
|
||||||
try = TEST_BUFFER_BLOCKS;
|
try = TEST_BUFFER_BLOCKS;
|
||||||
while (currently_testing < volume_size_blocks) {
|
while (currently_testing < volume_size_blocks) {
|
||||||
@ -616,7 +616,7 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
}
|
}
|
||||||
free(blkbuf);
|
free(blkbuf);
|
||||||
if (badblocks)
|
if (badblocks)
|
||||||
bb_info_msg("%d bad block(s)", badblocks);
|
bb_error_msg("%d bad block(s)", badblocks);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user