From 7fde1db6a4b00696c433de8498e88e3928d6d757 Mon Sep 17 00:00:00 2001 From: lns Date: Sun, 24 Sep 2023 22:50:22 +0200 Subject: Added printf/fprintf replacement for some internal modules. * logging is instead redirected to `ndpi_debug_printf` Signed-off-by: lns --- src/lib/third_party/include/roaring.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/third_party/include/roaring.h') diff --git a/src/lib/third_party/include/roaring.h b/src/lib/third_party/include/roaring.h index 117f861b4..500ba9cb9 100644 --- a/src/lib/third_party/include/roaring.h +++ b/src/lib/third_party/include/roaring.h @@ -259,10 +259,13 @@ static inline void roaring_bitmap_set_copy_on_write(roaring_bitmap_t* r, roaring_bitmap_t *roaring_bitmap_add_offset(const roaring_bitmap_t *bm, int64_t offset); + +#ifdef NDPI_ENABLE_DEBUG_MESSAGES /** * Describe the inner structure of the bitmap. */ void roaring_bitmap_printf_describe(const roaring_bitmap_t *r); +#endif /** * Creates a new bitmap from a list of uint32_t integers @@ -286,10 +289,12 @@ roaring_bitmap_t *roaring_bitmap_copy(const roaring_bitmap_t *r); bool roaring_bitmap_overwrite(roaring_bitmap_t *dest, const roaring_bitmap_t *src); +#ifdef NDPI_ENABLE_DEBUG_MESSAGES /** * Print the content of the bitmap. */ void roaring_bitmap_printf(const roaring_bitmap_t *r); +#endif /** * Computes the intersection between two bitmaps and returns new bitmap. The -- cgit v1.2.3