Prints a more clear statement that Everything is OK at the end of commands.

This commit is contained in:
Andrea Mazzoleni 2013-09-21 19:11:11 +02:00
parent 5033e1e2f1
commit 013306e325
10 changed files with 59 additions and 32 deletions

View file

@ -643,7 +643,7 @@ static int state_check_process(struct snapraid_state* state, int check, int fix,
}
} else {
/* if checking or hashing, open the file only for reading */
ret = handle_open(&handle[j], block_file_get(block), stdlog, state->opt.skip_sequential);
ret = handle_open(&handle[j], block_file_get(block), state->opt.skip_sequential, stdlog);
if (ret == -1) {
/* save the failed block for the check/fix */
failed[failed_count].is_bad = 1;
@ -1537,7 +1537,7 @@ bail:
printf("No unrecoverable errors\n");
}
} else {
printf("No error\n");
printf("Everything OK\n");
}
free(failed);