From: Victor Julien Date: Sat, 20 May 2023 19:51:50 +0000 (+0200) Subject: streaming: minor guards cleanup X-Git-Tag: suricata-7.0.0-rc2~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebe0a7bdc0031af4a9790286d05fd2214f83d057;p=thirdparty%2Fsuricata.git streaming: minor guards cleanup --- diff --git a/src/util-streaming-buffer.c b/src/util-streaming-buffer.c index 90ef824666..0b1e2981af 100644 --- a/src/util-streaming-buffer.c +++ b/src/util-streaming-buffer.c @@ -950,8 +950,7 @@ static void ListRegions(StreamingBuffer *sb) { if (sb->region.buf == NULL && sb->region.buf_offset == 0 && sb->region.next == NULL) return; -#ifdef DEBUG -#if DUMP_REGIONS == 1 +#if defined(DEBUG) && DUMP_REGIONS == 1 uint32_t cnt = 0; for (StreamingBufferRegion *r = &sb->region; r != NULL; r = r->next) { cnt++; @@ -980,7 +979,6 @@ static void ListRegions(StreamingBuffer *sb) if (at_least_one) printf("\n"); #endif -#endif #if defined(DEBUG) || defined(DEBUG_VALIDATION) StreamingBufferBlock *sbb2 = NULL; RB_FOREACH(sbb2, SBB, &sb->sbb_tree)