Put all the stdout output also in stdlog

This commit is contained in:
Andrea Mazzoleni 2015-02-03 19:35:43 +01:00
parent 3884af54ea
commit 2ac751b6d9
21 changed files with 221 additions and 216 deletions

View file

@ -165,9 +165,9 @@ bail:
}
if (error) {
printf("%u read errors\n", error);
fout("%u read errors\n", error);
} else {
printf("Everything OK\n");
fout("Everything OK\n");
}
free(handle);
@ -189,7 +189,7 @@ void state_dry(struct snapraid_state* state, block_off_t blockstart, block_off_t
unsigned error;
unsigned l;
printf("Drying...\n");
fout("Drying...\n");
blockmax = parity_allocated_size(state);
@ -211,7 +211,7 @@ void state_dry(struct snapraid_state* state, block_off_t blockstart, block_off_t
parity_ptr[l] = &parity[l];
ret = parity_open(parity_ptr[l], state->parity[l].path, state->file_mode);
if (ret == -1) {
printf("No accessible %s file.\n", lev_name(l));
fout("No accessible %s file.\n", lev_name(l));
/* continue anyway */
parity_ptr[l] = 0;
}