{
test_dump_rand_state();
default_error_handler(ctx, format, args);
-#ifdef DEBUG
- if (ctx->type == LOG_TYPE_WARNING &&
- strstr(format, "Growing") != NULL) {
- /* ignore "Growing memory pool" and "Growing data stack"
- warnings */
- return;
- }
-#endif
if (expected_errors > 0) {
if (expected_error_str != NULL) {
test_assert(strstr(format, expected_error_str) != NULL);
#ifdef DEBUG
if (warn && getenv("DEBUG_SILENT") == NULL) {
- /* warn after allocation, so if i_warning() wants to
+ /* warn after allocation, so if i_debug() wants to
allocate more memory we don't go to infinite loop */
- i_warning("Growing data stack by %"PRIuSIZE_T" as "
+ i_debug("Growing data stack by %"PRIuSIZE_T" as "
"'%s' reaches %llu bytes from %u allocations.",
current_block->size,
current_frame_block->marker[frame_pos],
size = nearest_power(size);
#ifdef DEBUG
if (!apool->disable_warning) {
- /* i_warning() overwrites unallocated data in data
+ /* i_debug() overwrites unallocated data in data
stack, so make sure everything is allocated before
calling it. */
t_buffer_alloc_last_full();
- i_warning("Growing pool '%s' with: %"PRIuSIZE_T,
+ i_debug("Growing pool '%s' with: %"PRIuSIZE_T,
apool->name, size);
}
#endif