Commit b56ef6af authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Refine the debugging string: we don't really need the XID, but we do need

the thread ID in order to locate the correct thread in gdb.  Furthermore,
we must use VSL rather than WSL since the session might actually not have
a worker at that point; but if it does, make sure to flush the log first.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2220 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c2a25857
......@@ -880,10 +880,11 @@ CNT_Session(struct sess *sp)
#ifdef DIAGNOSTICS
#define STEP(l,u) \
case STP_##u: \
WSL(sp->wrk, SLT_Debug, sp->id, \
"cnt_%s(%p) xid %x obj %p vcl %p", \
#l, sp, sp->xid, sp->obj, sp->vcl); \
WSL_Flush(sp->wrk); \
if (sp->wrk) \
WSL_Flush(sp->wrk); \
VSL(SLT_Debug, sp->id, \
"thr %p STP_%s sp %p obj %p vcl %p", \
pthread_self(), #u, sp, sp->obj, sp->vcl); \
done = cnt_##l(sp); \
break;
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment