From 43b355734cf192129f2906789185301a61f4cd8a Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Sat, 12 Jun 2004 02:06:16 +0000 Subject: 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 --- src/directory.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/directory.c') 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: */ -- cgit v1.2.3