summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-01-01 14:41:14 +0100
committerGitHub <noreply@github.com>2021-01-01 14:41:14 +0100
commit8596b43b2bdcebe51a06dbb770701983277a80ea (patch)
tree27cd0983719be6d5f567f373dfc0a8160b0ec761 /src/saveload
parent7222bc5814ebe3430e6cef17f12fb3fcd5ad5eb6 (diff)
downloadopenttd-8596b43b2bdcebe51a06dbb770701983277a80ea.tar.xz
Codechange: move some DEBUG-levels and remove some others in saveload routine (#8474)
When running with -dsl=2 it is very easy to miss important information as there was a lot of noise in between too. This tunes the debug levels a bit to be less noisy while keeping the important bits.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/saveload.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index 91f9c5a08..1b79ad926 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -305,17 +305,13 @@ static void SlNullPointers()
* pointers from other pools. */
_sl_version = SAVEGAME_VERSION;
- DEBUG(sl, 1, "Nulling pointers");
-
FOR_ALL_CHUNK_HANDLERS(ch) {
if (ch->ptrs_proc != nullptr) {
- DEBUG(sl, 2, "Nulling pointers for %c%c%c%c", ch->id >> 24, ch->id >> 16, ch->id >> 8, ch->id);
+ DEBUG(sl, 3, "Nulling pointers for %c%c%c%c", ch->id >> 24, ch->id >> 16, ch->id >> 8, ch->id);
ch->ptrs_proc();
}
}
- DEBUG(sl, 1, "All pointers nulled");
-
assert(_sl.action == SLA_NULL);
}
@@ -1847,17 +1843,13 @@ static void SlFixPointers()
{
_sl.action = SLA_PTRS;
- DEBUG(sl, 1, "Fixing pointers");
-
FOR_ALL_CHUNK_HANDLERS(ch) {
if (ch->ptrs_proc != nullptr) {
- DEBUG(sl, 2, "Fixing pointers for %c%c%c%c", ch->id >> 24, ch->id >> 16, ch->id >> 8, ch->id);
+ DEBUG(sl, 3, "Fixing pointers for %c%c%c%c", ch->id >> 24, ch->id >> 16, ch->id >> 8, ch->id);
ch->ptrs_proc();
}
}
- DEBUG(sl, 1, "All pointers fixed");
-
assert(_sl.action == SLA_PTRS);
}