]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
streaming: minor guards cleanup 8904/head
authorVictor Julien <vjulien@oisf.net>
Sat, 20 May 2023 19:51:50 +0000 (21:51 +0200)
committerVictor Julien <vjulien@oisf.net>
Sun, 21 May 2023 04:46:04 +0000 (06:46 +0200)
src/util-streaming-buffer.c

index 90ef8246666a02b32e9c4a5528f8df3efc7ec9a8..0b1e2981afde374067e581a9cce1d8ae57e1c15f 100644 (file)
@@ -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)