1
0
Fork 0

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.
pull/8475/head
Patric Stout 2021-01-01 14:41:14 +01:00 committed by GitHub
parent 7222bc5814
commit 8596b43b2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 10 deletions

View File

@ -305,17 +305,13 @@ static void SlNullPointers()
* pointers from other pools. */ * pointers from other pools. */
_sl_version = SAVEGAME_VERSION; _sl_version = SAVEGAME_VERSION;
DEBUG(sl, 1, "Nulling pointers");
FOR_ALL_CHUNK_HANDLERS(ch) { FOR_ALL_CHUNK_HANDLERS(ch) {
if (ch->ptrs_proc != nullptr) { 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(); ch->ptrs_proc();
} }
} }
DEBUG(sl, 1, "All pointers nulled");
assert(_sl.action == SLA_NULL); assert(_sl.action == SLA_NULL);
} }
@ -1847,17 +1843,13 @@ static void SlFixPointers()
{ {
_sl.action = SLA_PTRS; _sl.action = SLA_PTRS;
DEBUG(sl, 1, "Fixing pointers");
FOR_ALL_CHUNK_HANDLERS(ch) { FOR_ALL_CHUNK_HANDLERS(ch) {
if (ch->ptrs_proc != nullptr) { 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(); ch->ptrs_proc();
} }
} }
DEBUG(sl, 1, "All pointers fixed");
assert(_sl.action == SLA_PTRS); assert(_sl.action == SLA_PTRS);
} }