~vcs-imports/busybox/main

« back to all changes in this revision

Viewing changes to util-linux/mkfs_vfat.c

  • Committer: vda
  • Date: 2009-04-29 12:02:57 UTC
  • Revision ID: vcs-imports@canonical.com-20090429120257-az82u75jb2tv20cl
*: bb_error_msg's messages should not be capitalized

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
                        device_num == 0x0d00 || // xd
274
274
                        device_num == 0x1600 )  // hdc, hdd
275
275
                )
276
 
                        bb_error_msg_and_die("Will not try to make filesystem on full-disk device (use -I if wanted)");
 
276
                        bb_error_msg_and_die("will not try to make filesystem on full-disk device (use -I if wanted)");
277
277
                // can't work on mounted filesystems
278
278
                if (find_mount_point(device_name, NULL))
279
 
                        bb_error_msg_and_die("Can't format mounted filesystem");
 
279
                        bb_error_msg_and_die("can't format mounted filesystem");
280
280
#endif
281
281
                // get true sector size
282
282
                // (parameter must be int*, not long* or size_t*)
562
562
                start_data_sector = (reserved_sect + NUM_FATS * sect_per_fat) * (bytes_per_sect / SECTOR_SIZE);
563
563
                start_data_block = (start_data_sector + SECTORS_PER_BLOCK - 1) / SECTORS_PER_BLOCK;
564
564
 
565
 
                bb_info_msg("Searching for bad blocks ");
 
565
                bb_info_msg("searching for bad blocks ");
566
566
                currently_testing = 0;
567
567
                try = TEST_BUFFER_BLOCKS;
568
568
                while (currently_testing < volume_size_blocks) {
577
577
                        if (got < 0)
578
578
                                got = 0;
579
579
                        if (got & (BLOCK_SIZE - 1))
580
 
                                bb_error_msg("Unexpected values in do_check: probably bugs");
 
580
                                bb_error_msg("unexpected values in do_check: probably bugs");
581
581
                        got /= BLOCK_SIZE;
582
582
                        currently_testing += got;
583
583
                        if (got == try) {
592
592
                        for (i = 0; i < SECTORS_PER_BLOCK; i++) {
593
593
                                int cluster = (currently_testing * SECTORS_PER_BLOCK + i - start_data_sector) / (int) (sect_per_clust) / (bytes_per_sect / SECTOR_SIZE);
594
594
                                if (cluster < 0)
595
 
                                        bb_error_msg_and_die("Invalid cluster number in mark_sector: probably bug!");
 
595
                                        bb_error_msg_and_die("invalid cluster number in mark_sector: probably bug!");
596
596
                                MARK_CLUSTER(cluster, BAD_FAT32);
597
597
                        }
598
598
                        badblocks++;