In the messages uses WARNING in uppercase.

This commit is contained in:
Andrea Mazzoleni 2013-08-27 22:42:50 +02:00
parent e800b190a3
commit 4fb96c0dec
4 changed files with 8 additions and 8 deletions

2
pool.c
View file

@ -146,7 +146,7 @@ static void make_link(const char* pool_dir, struct snapraid_disk* disk, const ch
ret = symlink(linkto, path); ret = symlink(linkto, path);
if (ret != 0) { if (ret != 0) {
if (errno == EEXIST) { if (errno == EEXIST) {
fprintf(stderr, "warning: Duplicate pooling for '%s'\n", path); fprintf(stderr, "WARNING! Duplicate pooling for '%s'\n", path);
#ifdef _WIN32 #ifdef _WIN32
} else if (errno == EPERM) { } else if (errno == EPERM) {
fprintf(stderr, "You must run as Adminstrator to be able to create symlinks.\n"); fprintf(stderr, "You must run as Adminstrator to be able to create symlinks.\n");

4
scan.c
View file

@ -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 Unix don't follow mount points in different devices */
/* in Windows we are already skipping them reporting them as special files */ /* in Windows we are already skipping them reporting them as special files */
if ((uint64_t)st.st_dev != disk->device) { 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 } else
#endif #endif
{ {
@ -764,7 +764,7 @@ static int scan_dir(struct snapraid_scan* scan, struct snapraid_state* state, in
} }
} else { } else {
if (filter_path(&state->filterlist, disk->name, sub_next) == 0) { 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 { } else {
if (state->opt.verbose) { if (state->opt.verbose) {
printf("Excluding special '%s' file '%s'\n", stat_desc(&st), path_next); printf("Excluding special '%s' file '%s'\n", stat_desc(&st), path_next);

View file

@ -336,7 +336,7 @@ int main(int argc, char* argv[])
opt.force_device = 1; opt.force_device = 1;
break; break;
case 'N' : 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; break;
case 'a' : case 'a' :
audit_only = 1; audit_only = 1;

View file

@ -3127,7 +3127,7 @@ void state_read(struct snapraid_state* state)
/* otherwise continue */ /* otherwise continue */
if (node->next) { 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 */ /* ensure to rewrite all the content files */
state->need_write = 1; state->need_write = 1;
@ -3143,7 +3143,7 @@ void state_read(struct snapraid_state* state)
/* create the initial mapping */ /* create the initial mapping */
state_map(state); state_map(state);
fprintf(stderr, "warning: No content file found. Assuming empty.\n"); fprintf(stderr, "No content file found. Assuming empty.\n");
return; return;
} }
@ -3174,8 +3174,8 @@ void state_read(struct snapraid_state* state)
} else { } else {
/* if the size is different */ /* if the size is different */
if (other_st.st_size != st.st_size) { 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! 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, "Likely one of the two is broken!\n");
/* ensure to rewrite all the content files */ /* ensure to rewrite all the content files */
state->need_write = 1; state->need_write = 1;