mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Replace printf that fires all the time with an assertion for what I really want to check.
This commit is contained in:
parent
8ec66d82be
commit
d58a422120
@ -384,8 +384,6 @@ static void flush_logfile(logfile *fp)
|
||||
bp += cnt;
|
||||
len -= cnt;
|
||||
} while (len > 0);
|
||||
} else {
|
||||
fprintf(stderr, "### nsTraceMalloc: can't flush to closed log file\n");
|
||||
}
|
||||
fp->simsize += len;
|
||||
}
|
||||
@ -1850,6 +1848,8 @@ PR_IMPLEMENT(void) NS_TraceMallocStartup(int logfd)
|
||||
suppress_tracing = (logfd < 0);
|
||||
|
||||
if (suppress_tracing == 0) {
|
||||
PR_ASSERT(logfp->simsize == 0); /* didn't overflow startup buffer */
|
||||
|
||||
/* Log everything in logfp (aka default_logfile)'s buffer to logfd. */
|
||||
logfp->fd = logfd;
|
||||
logfile_list = &default_logfile;
|
||||
|
Loading…
Reference in New Issue
Block a user