Use sp->vsl_id as thread identifier

POSIX threads don't have a thread identifier that can be printed
in a portable manner.
parent 77a7e830
......@@ -1655,13 +1655,13 @@ cnt_diag(struct sess *sp, const char *state)
}
if (sp->wrk != NULL) {
WSP(sp, SLT_Debug, "thr %p STP_%s sp %p obj %p vcl %p",
pthread_self(), state, sp, obj, vcl);
WSP(sp, SLT_Debug, "vsl_id %u STP_%s sp %p obj %p vcl %p",
sp->vsl_id, state, sp, obj, vcl);
WSL_Flush(sp->wrk, 0);
} else {
VSL(SLT_Debug, sp->vsl_id,
"thr %p STP_%s sp %p obj %p vcl %p",
pthread_self(), state, sp, obj, vcl);
"vsl_id %u STP_%s sp %p obj %p vcl %p",
sp->vsl_id, state, sp, obj, vcl);
}
}
......
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