[master] a07f032 better formatting for bo flags panic string. remove additional is_prefix
Nils Goroll
nils.goroll at uplex.de
Tue Jan 6 20:55:56 CET 2015
commit a07f0329e50a19924be6fcc390c060feac72b014
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Tue Jan 6 20:55:40 2015 +0100
better formatting for bo flags panic string. remove additional is_prefix
diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
index 7c8ec65..d45458e 100644
--- a/bin/varnishd/cache/cache_panic.c
+++ b/bin/varnishd/cache/cache_panic.c
@@ -326,9 +326,11 @@ pan_busyobj(const struct busyobj *bo)
VSB_printf(pan_vsp, " retries = %d\n", bo->retries);
VSB_printf(pan_vsp, " failed = %d\n", bo->vfc->failed);
VSB_printf(pan_vsp, " state = %d\n", (int)bo->state);
-#define BO_FLAG(l, r, w, d) if(bo->l) VSB_printf(pan_vsp, " is_" #l "\n");
+ VSB_printf(pan_vsp, " flags = {\n");
+#define BO_FLAG(l, r, w, d) if(bo->l) VSB_printf(pan_vsp, " " #l "\n");
#include "tbl/bo_flags.h"
#undef BO_FLAG
+ VSB_printf(pan_vsp, " }\n");
if (bo->htc != NULL) {
VSB_printf(pan_vsp, " bodystatus = %d (%s),\n",
More information about the varnish-commit
mailing list