aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fsck_minix.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/fsck_minix.c')
-rw-r--r--util-linux/fsck_minix.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index 33767a1af..d2f3524b4 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -371,9 +371,9 @@ static int ask(const char *string, int def)
371 } 371 }
372 } 372 }
373 if (def) 373 if (def)
374 printf("y\n"); 374 puts("y");
375 else { 375 else {
376 printf("n\n"); 376 puts("n");
377 errors_uncorrected = 1; 377 errors_uncorrected = 1;
378 } 378 }
379 return def; 379 return def;
@@ -405,7 +405,7 @@ static void check_mount(void)
405 if (isatty(0) && isatty(1)) 405 if (isatty(0) && isatty(1))
406 cont = ask("Do you really want to continue", 0); 406 cont = ask("Do you really want to continue", 0);
407 if (!cont) { 407 if (!cont) {
408 printf("Check aborted\n"); 408 puts("Check aborted");
409 exit(EXIT_SUCCESS); 409 exit(EXIT_SUCCESS);
410 } 410 }
411 } 411 }
@@ -470,8 +470,8 @@ static void write_block(unsigned nr, void *addr)
470 if (!nr) 470 if (!nr)
471 return; 471 return;
472 if (nr < FIRSTZONE || nr >= ZONES) { 472 if (nr < FIRSTZONE || nr >= ZONES) {
473 printf("Internal error: trying to write bad block\n" 473 puts("Internal error: trying to write bad block\n"
474 "Write request ignored\n"); 474 "Write request ignored");
475 errors_uncorrected = 1; 475 errors_uncorrected = 1;
476 return; 476 return;
477 } 477 }
@@ -659,7 +659,7 @@ static void read_tables(void)
659 if (INODE_BUFFER_SIZE != read(dev_fd, inode_buffer, INODE_BUFFER_SIZE)) 659 if (INODE_BUFFER_SIZE != read(dev_fd, inode_buffer, INODE_BUFFER_SIZE))
660 die("can't read inodes"); 660 die("can't read inodes");
661 if (NORM_FIRSTZONE != FIRSTZONE) { 661 if (NORM_FIRSTZONE != FIRSTZONE) {
662 printf("warning: firstzone!=norm_firstzone\n"); 662 puts("warning: firstzone!=norm_firstzone");
663 errors_uncorrected = 1; 663 errors_uncorrected = 1;
664 } 664 }
665 get_dirsize(); 665 get_dirsize();
@@ -713,7 +713,7 @@ static void get_inode_common(unsigned nr, uint16_t i_mode)
713 } else 713 } else
714 links++; 714 links++;
715 if (!++inode_count[nr]) { 715 if (!++inode_count[nr]) {
716 printf("Warning: inode count too big\n"); 716 puts("Warning: inode count too big");
717 inode_count[nr]--; 717 inode_count[nr]--;
718 errors_uncorrected = 1; 718 errors_uncorrected = 1;
719 } 719 }
@@ -1299,7 +1299,7 @@ int fsck_minix_main(int argc UNUSED_PARAM, char **argv)
1299 } 1299 }
1300 if (changed) { 1300 if (changed) {
1301 write_tables(); 1301 write_tables();
1302 printf("FILE SYSTEM HAS BEEN CHANGED\n"); 1302 puts("FILE SYSTEM HAS BEEN CHANGED");
1303 sync(); 1303 sync();
1304 } else if (OPT_repair) 1304 } else if (OPT_repair)
1305 write_superblock(); 1305 write_superblock();