From 3f23d5e23890dd93b41239975b4a45c0a56c08af Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 1 Aug 2008 11:24:48 +0000 Subject: [PATCH] Use WRONG instead of INCOMPL git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3059 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_center.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index 573af817..8b451ee0 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -487,7 +487,7 @@ cnt_first(struct sess *sp) sp->step = STP_DONE; break; default: - INCOMPL(); + WRONG("Illegal return from HTC_Rx"); } return (0); } @@ -884,7 +884,8 @@ cnt_recv(struct sess *sp) sp->step = STP_ERROR; return (0); default: - INCOMPL(); + WRONG("Illegal action in vcl_recv{}"); + return (0); } } @@ -1008,7 +1009,8 @@ CNT_Session(struct sess *sp) break; #include "steps.h" #undef STEP - default: INCOMPL(); + default: + WRONG("State engine misfire"); } CHECK_OBJ_ORNULL(w->nobj, OBJECT_MAGIC); CHECK_OBJ_ORNULL(w->nobjhead, OBJHEAD_MAGIC); -- 2.39.5