summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-08 21:14:49 +0000
committerrubidium <rubidium@openttd.org>2010-04-08 21:14:49 +0000
commitd8baa1342c4ddce823724b758c5b3e4547e84e90 (patch)
treea8877f3db63d8d7c5d9a7dbee7f4a0943e8ab785 /src/saveload
parent9ad86b776fcb04242fda1203ca126bbb68ff2829 (diff)
downloadopenttd-d8baa1342c4ddce823724b758c5b3e4547e84e90.tar.xz
(svn r19589) -Change: add some more useful information to the desync log and unify the formatting
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/saveload.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index 8dc12eea2..48c490f6f 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -1884,7 +1884,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb, boo
/* General tactic is to first save the game to memory, then use an available writer
* to write it to file, either in threaded mode if possible, or single-threaded */
if (mode == SL_SAVE) { // SAVE game
- DEBUG(desync, 1, "save: %s\n", filename);
+ DEBUG(desync, 1, "save: %s", filename);
_sl.write_bytes = WriteMem;
_sl.excpt_uninit = UnInitMem;
@@ -1908,7 +1908,7 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb, boo
}
} else { // LOAD game
assert(mode == SL_LOAD);
- DEBUG(desync, 1, "load: %s\n", filename);
+ DEBUG(desync, 1, "load: %s", filename);
/* Can't fseek to 0 as in tar files that is not correct */
long pos = ftell(_sl.fh);