aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.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/directory.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 'src/directory.c')
-rw-r--r--src/directory.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/directory.c b/src/directory.c
index 959ade487..0d1b0ee2b 100644
--- a/src/directory.c
+++ b/src/directory.c
@@ -931,7 +931,7 @@ int readDirectoryDB() {
char * tempCharset;
if(foundFsCharset) {
- ERROR("already found "
+ WARNING("already found "
"fs charset in db\n");
exit(EXIT_FAILURE);
}
@@ -944,11 +944,11 @@ int readDirectoryDB() {
getConf()[CONF_FS_CHARSET]) &&
strcmp(fsCharset,tempCharset))
{
- ERROR("Using \"%s\" for the "
+ WARNING("Using \"%s\" for the "
"filesystem charset "
"instead of \"%s\"\n",
fsCharset,tempCharset);
- ERROR("maybe you need to "
+ WARNING("maybe you need to "
"recreate the db?\n");
setFsCharset(fsCharset);
}
@@ -1275,4 +1275,3 @@ Song * getSongFromDB(char * file) {
time_t getDbModTime() {
return directory_dbModTime;
}
-/* vim:set shiftwidth=4 tabstop=8 expandtab: */