mostly style fixes
[oweals/busybox.git] / e2fsprogs / e2fsck.c
index 7ffc0d230e2baee3ec2b7ea858c06888c2129b2c..88eedeaa6e5530b2b6a602b932ca8910dd9f9c19 100644 (file)
@@ -6721,7 +6721,7 @@ static int update_dir_block(ext2_filsys fs FSCK_ATTR((unused)),
  * Then, pass3 interates over all directory inodes; for each directory
  * it attempts to trace up the filesystem tree, using dirinfo.parent
  * until it reaches a directory which has been marked "done".  If it
- * can not do so, then the directory must be disconnected, and e2fsck
+ * cannot do so, then the directory must be disconnected, and e2fsck
  * will offer to reconnect it to /lost+found.  While it is chasing
  * parent pointers up the filesystem tree, if pass3 sees a directory
  * twice, then it has detected a filesystem loop, and it will again
@@ -8587,7 +8587,7 @@ static const struct e2fsck_problem problem_table[] = {
 
        /* Bad primary block */
        { PR_1_BAD_PRIMARY_BLOCK,
-         N_("\nIf the @b is really bad, the @f can not be fixed.\n"),
+         N_("\nIf the @b is really bad, the @f cannot be fixed.\n"),
          PROMPT_NONE, PR_AFTER_CODE, PR_1_BAD_PRIMARY_BLOCK_PROMPT },
 
        /* Bad primary block prompt */
@@ -8952,7 +8952,7 @@ static const struct e2fsck_problem problem_table[] = {
 
        /* File has duplicate blocks */
        { PR_1D_DUP_FILE,
-         N_("File %Q (@i #%i, mod time %IM) \n"
+         N_("File %Q (@i #%i, mod time %IM)\n"
          "  has %B @m @b(s), shared with %N file(s):\n"),
          PROMPT_NONE, 0 },
 
@@ -9132,7 +9132,7 @@ static const struct e2fsck_problem problem_table[] = {
 
        /* Internal error: couldn't find dir_info */
        { PR_2_NO_DIRINFO,
-         N_("Internal error: couldn't find dir_info for %i.\n"),
+         N_("Internal error: cannot find dir_info for %i.\n"),
          PROMPT_NONE, PR_FATAL },
 
        /* Final rec_len is wrong */
@@ -9408,7 +9408,7 @@ static const struct e2fsck_problem problem_table[] = {
 
        /* Internal error: couldn't find dir_info */
        { PR_3_NO_DIRINFO,
-         N_("Internal error: couldn't find dir_info for %i.\n"),
+         N_("Internal error: cannot find dir_info for %i.\n"),
          PROMPT_NONE, PR_FATAL },
 
        /* Lost+found not a directory */
@@ -9818,7 +9818,7 @@ static int jread(struct buffer_head **bhp, journal_t *journal,
        err = journal_bmap(journal, offset, &blocknr);
 
        if (err) {
-               printf ("JBD: bad block at offset %u\n", offset);
+               printf("JBD: bad block at offset %u\n", offset);
                return err;
        }
 
@@ -9835,7 +9835,7 @@ static int jread(struct buffer_head **bhp, journal_t *journal,
        }
 
        if (!buffer_uptodate(bh)) {
-               printf ("JBD: Failed to read block at offset %u\n", offset);
+               printf("JBD: Failed to read block at offset %u\n", offset);
                brelse(bh);
                return -EIO;
        }
@@ -10049,7 +10049,7 @@ static int do_one_pass(journal_t *journal,
                                        /* Recover what we can, but
                                         * report failure at the end. */
                                        success = err;
-                                       printf ("JBD: IO error %d recovering "
+                                       printf("JBD: IO error %d recovering "
                                                "block %ld in log\n",
                                                err, io_block);
                                } else {
@@ -10074,7 +10074,7 @@ static int do_one_pass(journal_t *journal,
                                                       blocknr,
                                                     journal->j_blocksize);
                                        if (nbh == NULL) {
-                                               printf ("JBD: Out of memory "
+                                               printf("JBD: Out of memory "
                                                       "during recovery.\n");
                                                err = -ENOMEM;
                                                brelse(bh);
@@ -10153,7 +10153,7 @@ static int do_one_pass(journal_t *journal,
                /* It's really bad news if different passes end up at
                 * different places (but possible due to IO errors). */
                if (info->end_transaction != next_commit_ID) {
-                       printf ("JBD: recovery pass %d ended at "
+                       printf("JBD: recovery pass %d ended at "
                                "transaction %u, expected %u\n",
                                pass, next_commit_ID, info->end_transaction);
                        if (!success)
@@ -12335,15 +12335,15 @@ static int ask_yn(const char * string, int def)
 int ask (e2fsck_t ctx, const char * string, int def)
 {
        if (ctx->options & E2F_OPT_NO) {
-               printf (_("%s? no\n\n"), string);
+               printf(_("%s? no\n\n"), string);
                return 0;
        }
        if (ctx->options & E2F_OPT_YES) {
-               printf (_("%s? yes\n\n"), string);
+               printf(_("%s? yes\n\n"), string);
                return 1;
        }
        if (ctx->options & E2F_OPT_PREEN) {
-               printf ("%s? %s\n\n", string, def ? _("yes") : _("no"));
+               printf("%s? %s\n\n", string, def ? _("yes") : _("no"));
                return def;
        }
        return ask_yn(string, def);
@@ -12606,26 +12606,26 @@ static void show_stats(e2fsck_t ctx)
                       blocks_used, blocks);
                return;
        }
-       printf ("\n%8d inode%s used (%d%%)\n", P_E2("", "s", inodes_used),
+       printf("\n%8d inode%s used (%d%%)\n", P_E2("", "s", inodes_used),
                100 * inodes_used / inodes);
-       printf ("%8d non-contiguous inode%s (%0d.%d%%)\n",
+       printf("%8d non-contiguous inode%s (%0d.%d%%)\n",
                P_E2("", "s", ctx->fs_fragmented),
                frag_percent / 10, frag_percent % 10);
-       printf (_("         # of inodes with ind/dind/tind blocks: %d/%d/%d\n"),
+       printf(_("         # of inodes with ind/dind/tind blocks: %d/%d/%d\n"),
                ctx->fs_ind_count, ctx->fs_dind_count, ctx->fs_tind_count);
-       printf ("%8d block%s used (%d%%)\n", P_E2("", "s", blocks_used),
+       printf("%8d block%s used (%d%%)\n", P_E2("", "s", blocks_used),
                (int) ((long long) 100 * blocks_used / blocks));
-       printf ("%8d large file%s\n", P_E2("", "s", ctx->large_files));
-       printf ("\n%8d regular file%s\n", P_E2("", "s", ctx->fs_regular_count));
-       printf ("%8d director%s\n", P_E2("y", "ies", ctx->fs_directory_count));
-       printf ("%8d character device file%s\n", P_E2("", "s", ctx->fs_chardev_count));
-       printf ("%8d block device file%s\n", P_E2("", "s", ctx->fs_blockdev_count));
-       printf ("%8d fifo%s\n", P_E2("", "s", ctx->fs_fifo_count));
-       printf ("%8d link%s\n", P_E2("", "s", ctx->fs_links_count - dir_links));
-       printf ("%8d symbolic link%s", P_E2("", "s", ctx->fs_symlinks_count));
-       printf (" (%d fast symbolic link%s)\n", P_E2("", "s", ctx->fs_fast_symlinks_count));
-       printf ("%8d socket%s--------\n\n", P_E2("", "s", ctx->fs_sockets_count));
-       printf ("%8d file%s\n", P_E2("", "s", ctx->fs_total_count - dir_links));
+       printf("%8d large file%s\n", P_E2("", "s", ctx->large_files));
+       printf("\n%8d regular file%s\n", P_E2("", "s", ctx->fs_regular_count));
+       printf("%8d director%s\n", P_E2("y", "ies", ctx->fs_directory_count));
+       printf("%8d character device file%s\n", P_E2("", "s", ctx->fs_chardev_count));
+       printf("%8d block device file%s\n", P_E2("", "s", ctx->fs_blockdev_count));
+       printf("%8d fifo%s\n", P_E2("", "s", ctx->fs_fifo_count));
+       printf("%8d link%s\n", P_E2("", "s", ctx->fs_links_count - dir_links));
+       printf("%8d symbolic link%s", P_E2("", "s", ctx->fs_symlinks_count));
+       printf(" (%d fast symbolic link%s)\n", P_E2("", "s", ctx->fs_fast_symlinks_count));
+       printf("%8d socket%s--------\n\n", P_E2("", "s", ctx->fs_sockets_count));
+       printf("%8d file%s\n", P_E2("", "s", ctx->fs_total_count - dir_links));
 }
 
 static void check_mount(e2fsck_t ctx)
@@ -12663,7 +12663,7 @@ static void check_mount(e2fsck_t ctx)
               "SEVERE filesystem damage.\007\007\007\n\n"));
        cont = ask_yn(_("Do you really want to continue"), -1);
        if (!cont) {
-               printf (_("check aborted.\n"));
+               printf(_("check aborted.\n"));
                exit (0);
        }
        return;
@@ -12915,7 +12915,7 @@ static void reserve_stdio_fds(void)
                if (fd > 2)
                        break;
                if (fd < 0) {
-                       fprintf(stderr, _("ERROR: Couldn't open "
+                       fprintf(stderr, _("ERROR: Cannot open "
                                "/dev/null (%s)\n"),
                                strerror(errno));
                        break;