[master] f1698fcbc vfp: New VFP_DEBUG(ctx, fmt, ...) macro
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Jun 10 17:08:06 UTC 2024
commit f1698fcbc96ebc3d1c5a3d44d1fac67455bbb939
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Fri May 24 11:50:41 2024 +0200
vfp: New VFP_DEBUG(ctx, fmt, ...) macro
It needs the debug::processors flag and Debug records to be unmasked to
become useful.
diff --git a/bin/varnishd/cache/cache_filter.h b/bin/varnishd/cache/cache_filter.h
index 18241ff63..d06540092 100644
--- a/bin/varnishd/cache/cache_filter.h
+++ b/bin/varnishd/cache/cache_filter.h
@@ -36,6 +36,14 @@ struct vdp_ctx;
/* Fetch processors --------------------------------------------------*/
+#define VFP_DEBUG(ctx, fmt, ...) \
+ do { \
+ if (!DO_DEBUG(DBG_PROCESSORS)) \
+ break; \
+ VSLb((ctx)->wrk->vsl, SLT_Debug, "VFP:%s:%d: " fmt, \
+ __func__, __LINE__, __VA_ARGS__); \
+ } while (0)
+
enum vfp_status {
VFP_ERROR = -1,
VFP_OK = 0,
More information about the varnish-commit
mailing list