aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mkfs_vfat.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mkfs_vfat.c')
-rw-r--r--util-linux/mkfs_vfat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/mkfs_vfat.c b/util-linux/mkfs_vfat.c
index b760fb2aa..16c1fac00 100644
--- a/util-linux/mkfs_vfat.c
+++ b/util-linux/mkfs_vfat.c
@@ -278,7 +278,7 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv)
278 if (!S_ISBLK(st.st_mode)) { 278 if (!S_ISBLK(st.st_mode)) {
279 if (!S_ISREG(st.st_mode)) { 279 if (!S_ISREG(st.st_mode)) {
280 if (!argv[1]) 280 if (!argv[1])
281 bb_error_msg_and_die("image size must be specified"); 281 bb_simple_error_msg_and_die("image size must be specified");
282 } 282 }
283 // not a block device, skip bad sectors check 283 // not a block device, skip bad sectors check
284 opts &= ~OPT_c; 284 opts &= ~OPT_c;
@@ -399,7 +399,7 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv)
399 // "mkdosfs -v -F 32 image5k 5" is the minimum: 399 // "mkdosfs -v -F 32 image5k 5" is the minimum:
400 // 2 sectors for FATs and 2 data sectors 400 // 2 sectors for FATs and 2 data sectors
401 if ((off_t)(volume_size_sect - reserved_sect) < 4) 401 if ((off_t)(volume_size_sect - reserved_sect) < 4)
402 bb_error_msg_and_die("the image is too small for FAT32"); 402 bb_simple_error_msg_and_die("the image is too small for FAT32");
403 sect_per_fat = 1; 403 sect_per_fat = 1;
404 while (1) { 404 while (1) {
405 while (1) { 405 while (1) {
@@ -439,7 +439,7 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv)
439 } 439 }
440 next: 440 next:
441 if (sect_per_clust == 128) 441 if (sect_per_clust == 128)
442 bb_error_msg_and_die("can't make FAT32 with >128 sectors/cluster"); 442 bb_simple_error_msg_and_die("can't make FAT32 with >128 sectors/cluster");
443 sect_per_clust *= 2; 443 sect_per_clust *= 2;
444 sect_per_fat = (sect_per_fat / 2) | 1; 444 sect_per_fat = (sect_per_fat / 2) | 1;
445 } 445 }