[3.0] ae07042 ifdef the OFOF development tool
Tollef Fog Heen
tfheen at varnish-cache.org
Wed Aug 17 11:28:23 CEST 2011
commit ae07042e814379f27dad2b52dc4f9203829e4571
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