diff --git a/pool.c b/pool.c index 3e306a6f..d5c3c81b 100644 --- a/pool.c +++ b/pool.c @@ -146,7 +146,7 @@ static void make_link(const char* pool_dir, struct snapraid_disk* disk, const ch ret = symlink(linkto, path); if (ret != 0) { if (errno == EEXIST) { - fprintf(stderr, "warning: Duplicate pooling for '%s'\n", path); + fprintf(stderr, "WARNING! Duplicate pooling for '%s'\n", path); #ifdef _WIN32 } else if (errno == EPERM) { fprintf(stderr, "You must run as Adminstrator to be able to create symlinks.\n"); diff --git a/scan.c b/scan.c index d1fd1aad..424bd19f 100644 --- a/scan.c +++ b/scan.c @@ -740,7 +740,7 @@ static int scan_dir(struct snapraid_scan* scan, struct snapraid_state* state, in /* in Unix don't follow mount points in different devices */ /* in Windows we are already skipping them reporting them as special files */ if ((uint64_t)st.st_dev != disk->device) { - fprintf(stderr, "warning: Ignoring mount point '%s' because it appears to be in a different device\n", path_next); + fprintf(stderr, "WARNING! Ignoring mount point '%s' because it appears to be in a different device\n", path_next); } else #endif { @@ -764,7 +764,7 @@ static int scan_dir(struct snapraid_scan* scan, struct snapraid_state* state, in } } else { if (filter_path(&state->filterlist, disk->name, sub_next) == 0) { - fprintf(stderr, "warning: Ignoring special '%s' file '%s'\n", stat_desc(&st), path_next); + fprintf(stderr, "WARNING! Ignoring special '%s' file '%s'\n", stat_desc(&st), path_next); } else { if (state->opt.verbose) { printf("Excluding special '%s' file '%s'\n", stat_desc(&st), path_next); diff --git a/snapraid.c b/snapraid.c index e3aa6faa..6d21be4f 100644 --- a/snapraid.c +++ b/snapraid.c @@ -336,7 +336,7 @@ int main(int argc, char* argv[]) opt.force_device = 1; break; case 'N' : - fprintf(stderr, "warning: Option --find-by-name, -N is deprecated and does nothing!\n"); + fprintf(stderr, "WARNING! Option --find-by-name, -N is deprecated and does nothing!\n"); break; case 'a' : audit_only = 1; diff --git a/state.c b/state.c index a346bd97..3a0706e6 100644 --- a/state.c +++ b/state.c @@ -3127,7 +3127,7 @@ void state_read(struct snapraid_state* state) /* otherwise continue */ if (node->next) { - fprintf(stderr, "warning: Content file '%s' not found, trying with another copy...\n", path); + fprintf(stderr, "WARNING! Content file '%s' not found, trying with another copy...\n", path); /* ensure to rewrite all the content files */ state->need_write = 1; @@ -3143,7 +3143,7 @@ void state_read(struct snapraid_state* state) /* create the initial mapping */ state_map(state); - fprintf(stderr, "warning: No content file found. Assuming empty.\n"); + fprintf(stderr, "No content file found. Assuming empty.\n"); return; } @@ -3174,8 +3174,8 @@ void state_read(struct snapraid_state* state) } else { /* if the size is different */ if (other_st.st_size != st.st_size) { - fprintf(stderr, "warning: Content files '%s' and '%s' have a different size!\n", path, other_path); - fprintf(stderr, "warning: Likely one of the two is broken!\n"); + fprintf(stderr, "WARNING! Content files '%s' and '%s' have a different size!\n", path, other_path); + fprintf(stderr, "Likely one of the two is broken!\n"); /* ensure to rewrite all the content files */ state->need_write = 1;