Restrict "absent" messages during snapshot loading to DEBUGGER

This commit is contained in:
OV2 2012-03-29 15:58:40 +02:00
parent 8e1b726b6b
commit 5bf62c9d2f
1 changed files with 2 additions and 0 deletions

View File

@ -2065,7 +2065,9 @@ static int UnfreezeBlock (STREAM stream, const char *name, uint8 *block, int siz
if (l != 11 || strncmp(buffer, name, 3) != 0 || buffer[3] != ':') if (l != 11 || strncmp(buffer, name, 3) != 0 || buffer[3] != ':')
{ {
err: err:
#ifdef DEBUGGER
fprintf(stdout, "absent: %s(%d); next: '%.11s'\n", name, size, buffer); fprintf(stdout, "absent: %s(%d); next: '%.11s'\n", name, size, buffer);
#endif
REVERT_STREAM(stream, FIND_STREAM(stream) - l, 0); REVERT_STREAM(stream, FIND_STREAM(stream) - l, 0);
return (WRONG_FORMAT); return (WRONG_FORMAT);
} }