[master] c8e2aba Also move DSL out of cache.h API

Poul-Henning Kamp phk at FreeBSD.org
Thu Mar 8 09:10:10 UTC 2018


commit c8e2aba9bd97a9b7a0ec57071b87055975e07d1e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu Mar 8 09:09:31 2018 +0000

    Also move DSL out of cache.h API
    
    Spotted by:	dridi

diff --git a/bin/varnishd/cache/cache.h b/bin/varnishd/cache/cache.h
index fb97ede..eb1c43d 100644
--- a/bin/varnishd/cache/cache.h
+++ b/bin/varnishd/cache/cache.h
@@ -958,12 +958,6 @@ Tlen(const txt t)
  */
 #define W_TIM_real(w) ((w)->lastused = VTIM_real())
 
-#define DSL(debug_bit, id, ...)					\
-	do {							\
-		if (DO_DEBUG(debug_bit))			\
-			VSL(SLT_Debug, (id), __VA_ARGS__);	\
-	} while (0)
-
 #define PAN_CheckMagic(vsb, ptr, exp)					\
 	do {								\
 		if ((ptr)->magic != (exp))				\
diff --git a/bin/varnishd/cache/cache_varnishd.h b/bin/varnishd/cache/cache_varnishd.h
index c81ac3b..bad6380 100644
--- a/bin/varnishd/cache/cache_varnishd.h
+++ b/bin/varnishd/cache/cache_varnishd.h
@@ -284,3 +284,9 @@ void SMP_Ready(void);
 #define FEATURE(x)	COM_FEATURE(cache_param->feature_bits, x)
 #define DO_DEBUG(x)	COM_DO_DEBUG(cache_param->debug_bits, x)
 
+#define DSL(debug_bit, id, ...)					\
+	do {							\
+		if (DO_DEBUG(debug_bit))			\
+			VSL(SLT_Debug, (id), __VA_ARGS__);	\
+	} while (0)
+


More information about the varnish-commit mailing list