[Scummvm-cvs-logs] CVS: scummvm/common config-manager.cpp,1.17,1.18

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Sun Mar 28 06:40:01 CEST 2004


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24424

Modified Files:
	config-manager.cpp 
Log Message:
Changed printf() to debug() and removed newline at the end of some messages


Index: config-manager.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/config-manager.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- config-manager.cpp	7 Feb 2004 04:53:59 -0000	1.17
+++ config-manager.cpp	28 Mar 2004 14:27:54 -0000	1.18
@@ -104,7 +104,7 @@
 
 	_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 @@
 	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 @@
 
 					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 @@
 //		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;
 





More information about the Scummvm-git-logs mailing list