[master] bc2a0bd ifdef the OFOF development tool

Poul-Henning Kamp phk at varnish-cache.org
Mon Aug 15 09:29:54 CEST 2011


commit bc2a0bd07058013d56fd53237b1ddd8012fb8e89
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon Aug 15 07:28:52 2011 +0000

    ifdef the OFOF development tool

diff --git a/bin/varnishd/cache_cli.c b/bin/varnishd/cache_cli.c
index 60e63bf..a3d1851 100644
--- a/bin/varnishd/cache_cli.c
+++ b/bin/varnishd/cache_cli.c
@@ -140,6 +140,7 @@ cli_debug_sizeof(struct cli *cli, const char * const *av, void *priv)
 	SZOF(struct vbc);
 	SZOF(struct VSC_C_main);
 	SZOF(struct lock);
+#if 0
 #define OFOF(foo, bar)	{ foo __foo; VCLI_Out(cli, \
     "%-30s = 0x%4zx @ 0x%4zx\n", \
 	#foo "." #bar, sizeof(__foo.bar), offsetof(foo, bar)); }
@@ -199,6 +200,8 @@ cli_debug_sizeof(struct cli *cli, const char * const *av, void *priv)
 	OFOF(struct object, esidata);
 	OFOF(struct object, last_use);
 #endif
+#undef OFOF
+#endif
 }
 
 /*--------------------------------------------------------------------*/



More information about the varnish-commit mailing list