From cb1a206c747845de0f67feff0ce1f52d4f064649 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Thu, 10 Sep 2015 13:27:50 +0300 Subject: [PATCH] Dump threading data structures only with _DEBUG_PRINT_THREADING_INFO. - They are usually not needed when using _DEBUG. --- src/encoder.c | 2 +- src/encoder_state-ctors_dtors.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/encoder.c b/src/encoder.c index 1db9d59f..84ae4870 100644 --- a/src/encoder.c +++ b/src/encoder.c @@ -359,7 +359,7 @@ encoder_control_t* kvz_encoder_control_init(const kvz_config *const cfg) { encoder->wpp = encoder->cfg->wpp; -#ifdef _DEBUG +#ifdef _DEBUG_PRINT_THREADING_INFO printf("Tiles columns width:"); for (i=0; i < encoder->tiles_num_tile_columns; ++i) { printf(" %d", encoder->tiles_col_width[i]); diff --git a/src/encoder_state-ctors_dtors.c b/src/encoder_state-ctors_dtors.c index 05f69bcd..cf9b6aef 100644 --- a/src/encoder_state-ctors_dtors.c +++ b/src/encoder_state-ctors_dtors.c @@ -146,7 +146,7 @@ static void encoder_state_config_wfrow_finalize(encoder_state_t * const state) { //Nothing to do (yet?) } -#ifdef _DEBUG +#ifdef _DEBUG_PRINT_THREADING_INFO static void encoder_state_dump_graphviz(const encoder_state_t * const state) { int i; @@ -635,7 +635,7 @@ int kvz_encoder_state_init(encoder_state_t * const child_state, encoder_state_t } } -#ifdef _DEBUG +#ifdef _DEBUG_PRINT_THREADING_INFO if (!parent_state) encoder_state_dump_graphviz(child_state); #endif //_DEBUG return 1;