diff options
author | Torbjörn Andersson | 2004-03-28 14:27:54 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-03-28 14:27:54 +0000 |
commit | b25f42535b813d022270f7b9f158510130a212bb (patch) | |
tree | 6727d830641f29264f61ce2eda4945d7eb0bafbf | |
parent | a06c09740854593160c297d23980d4375bc9d972 (diff) | |
download | scummvm-rg350-b25f42535b813d022270f7b9f158510130a212bb.tar.gz scummvm-rg350-b25f42535b813d022270f7b9f158510130a212bb.tar.bz2 scummvm-rg350-b25f42535b813d022270f7b9f158510130a212bb.zip |
Changed printf() to debug() and removed newline at the end of some messages
svn-id: r13403
-rw-r--r-- | common/config-manager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/config-manager.cpp b/common/config-manager.cpp index 46881ecde3..4b1604bcd7 100644 --- a/common/config-manager.cpp +++ b/common/config-manager.cpp @@ -104,7 +104,7 @@ void ConfigManager::switchFile(const String &filename) { _filename = filename; loadFile(_filename); - printf("Switched to configuration %s\n", _filename.c_str()); + debug(1, "Switched to configuration %s", _filename.c_str()); } void ConfigManager::loadFile(const String &filename) { @@ -114,7 +114,7 @@ void ConfigManager::loadFile(const String &filename) { String domain; if (!(cfg_file = fopen(filename.c_str(), "r"))) { - debug(1, "Unable to open configuration file: %s.\n", filename.c_str()); + debug(1, "Unable to open configuration file: %s", filename.c_str()); } else { while (!feof(cfg_file)) { t = buf; @@ -156,7 +156,7 @@ void ConfigManager::loadFile(const String &filename) { if (!(p = strchr(t, '='))) { if (strlen(t)) - warning("Config file buggy: there is junk: %s\n", t); + warning("Config file buggy: there is junk: %s", t); } else { *p = 0; String key = ltrim(rtrim(t)); @@ -178,7 +178,7 @@ void ConfigManager::flushToDisk() { // return; if (!(cfg_file = fopen(_filename.c_str(), "w"))) { - warning("Unable to write configuration file: %s.\n", _filename.c_str()); + warning("Unable to write configuration file: %s", _filename.c_str()); } else { DomainMap::const_iterator d; |