aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-11-19 13:07:37 -0800
committerChris Robinson <[email protected]>2014-11-19 13:07:37 -0800
commitd608f0e9f0e3c321ad02f4cbacde74df007fc2cd (patch)
tree56edfb7612792e7942b34f76e5fce7eae348e664 /Alc/helpers.c
parent6e198b34764aefe2130d5f173250067df91806bc (diff)
Only warn when no data file could be opened
Diffstat (limited to 'Alc/helpers.c')
-rw-r--r--Alc/helpers.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 8407a8d3..5dded699 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -498,7 +498,6 @@ FILE *OpenDataFile(const char *fname, const char *subdir)
TRACE("Opened %s\n", fname);
return f;
}
- WARN("Could not open %s\n", fname);
wname = FromUTF8(fname);
wsubdir = FromUTF8(subdir);
@@ -531,8 +530,8 @@ FILE *OpenDataFile(const char *fname, const char *subdir)
TRACE("Opened %ls\n", buffer);
return f;
}
- WARN("Could not open %ls\n", buffer);
}
+ WARN("Could not open %ls\\%ls\n", wsubdir, wname);
free(wname);
free(wsubdir);
@@ -561,7 +560,6 @@ FILE *OpenDataFile(const char *fname, const char *subdir)
TRACE("Opened %s\n", fname);
return f;
}
- WARN("Could not open %s\n", fname);
if((str=getenv("XDG_DATA_HOME")) != NULL && str[0] != '\0')
snprintf(buffer, sizeof(buffer), "%s/%s/%s", str, subdir, fname);
@@ -574,7 +572,6 @@ FILE *OpenDataFile(const char *fname, const char *subdir)
TRACE("Opened %s\n", buffer);
return f;
}
- WARN("Could not open %s\n", buffer);
}
if((str=getenv("XDG_DATA_DIRS")) == NULL || str[0] == '\0')
@@ -605,8 +602,8 @@ FILE *OpenDataFile(const char *fname, const char *subdir)
TRACE("Opened %s\n", buffer);
return f;
}
- WARN("Could not open %s\n", buffer);
}
+ WARN("Could not open %s/%s\n", subdir, fname);
return NULL;
}