aboutsummaryrefslogtreecommitdiffstats
path: root/src/path.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-12 02:06:16 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-12 02:06:16 +0000
commit43b355734cf192129f2906789185301a61f4cd8a (patch)
tree35a3a56a085fc590b1864347d49660d421157305 /src/path.c
parent43255a7f63af65d88bbead4c0d6429ef2008ada8 (diff)
downloadmpd-43b355734cf192129f2906789185301a61f4cd8a.tar.gz
mpd-43b355734cf192129f2906789185301a61f4cd8a.tar.xz
mpd-43b355734cf192129f2906789185301a61f4cd8a.zip
Add WARNING log method. it's the same as ERROR, except that when mpd starts,
warnings are buffered until the error log is opened, and then flushed to the error log. git-svn-id: https://svn.musicpd.org/mpd/trunk@1442 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/path.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/path.c b/src/path.c
index d7b08d6be..61c9f7040 100644
--- a/src/path.c
+++ b/src/path.c
@@ -86,13 +86,13 @@ void setFsCharset(char * charset) {
DEBUG("setFsCharset: fs charset is: %s\n",fsCharset);
if(setCharSetConversion("UTF-8",fsCharset)!=0) {
- ERROR("fs charset conversion problem: "
+ WARNING("fs charset conversion problem: "
"not able to convert from \"%s\" to \"%s\"\n",
fsCharset,"UTF-8");
error = 1;
}
if(setCharSetConversion(fsCharset,"UTF-8")!=0) {
- ERROR("fs charset conversion problem: "
+ WARNING("fs charset conversion problem: "
"not able to convert from \"%s\" to \"%s\"\n",
"UTF-8",fsCharset);
error = 1;
@@ -100,7 +100,7 @@ void setFsCharset(char * charset) {
if(error) {
free(fsCharset);
- ERROR("setting fs charset to ISO-8859-1!\n");
+ WARNING("setting fs charset to ISO-8859-1!\n");
fsCharset = strdup("ISO-8859-1");
}
}
@@ -145,28 +145,28 @@ void initPaths(char * playlistDirArg, char * musicDirArg) {
originalLocale = strdup(originalLocale);
if(!(currentLocale = setlocale(LC_CTYPE,""))) {
- ERROR("problems setting current locale with "
+ WARNING("problems setting current locale with "
"setlocale()\n");
}
else {
if(strcmp(currentLocale,"C")==0 ||
strcmp(currentLocale,"POSIX")==0)
{
- ERROR("current locale is \"%s\"\n",
+ WARNING("current locale is \"%s\"\n",
currentLocale);
}
else if((temp = nl_langinfo(CODESET))) {
charset = strdup(temp);
}
- else ERROR("problems getting charset for locale\n");
+ else WARNING("problems getting charset for locale\n");
if(!setlocale(LC_CTYPE,originalLocale)) {
- ERROR("problems resetting locale with setlocale()\n");
+ WARNING("problems resetting locale with setlocale()\n");
}
}
free(originalLocale);
}
- else ERROR("problems getting locale with setlocale()\n");
+ else WARNING("problems getting locale with setlocale()\n");
#endif
#endif
@@ -175,7 +175,7 @@ void initPaths(char * playlistDirArg, char * musicDirArg) {
free(charset);
}
else {
- ERROR("setting filesystem charset to ISO-8859-1\n");
+ WARNING("setting filesystem charset to ISO-8859-1\n");
setFsCharset("ISO-8859-1");
}
}