CLEANUP: debug: Use DPRINTF instead of fprintf into #ifdef DEBUG_FULL/#endif

This commit is contained in:
Christopher Faulet 2017-11-24 16:06:18 +01:00 committed by Willy Tarreau
parent 165f07e7b4
commit 56803b1c98
2 changed files with 2 additions and 6 deletions

View File

@ -770,9 +770,7 @@ int assign_server_address(struct stream *s)
struct connection *cli_conn = objt_conn(strm_orig(s));
struct connection *srv_conn = cs_conn(objt_cs(s->si[1].end));
#ifdef DEBUG_FULL
fprintf(stderr,"assign_server_address : s=%p\n",s);
#endif
DPRINTF(stderr,"assign_server_address : s=%p\n",s);
if ((s->flags & SF_DIRECT) || (s->be->lbprm.algo & BE_LB_KIND)) {
/* A server is necessarily known for this stream */

View File

@ -2441,13 +2441,11 @@ struct task *process_stream(struct task *t)
if (si_b->exp)
t->expire = tick_first(t->expire, si_b->exp);
#ifdef DEBUG_FULL
fprintf(stderr,
DPRINTF(stderr,
"[%u] queuing with exp=%u req->rex=%u req->wex=%u req->ana_exp=%u"
" rep->rex=%u rep->wex=%u, si[0].exp=%u, si[1].exp=%u, cs=%d, ss=%d\n",
now_ms, t->expire, req->rex, req->wex, req->analyse_exp,
res->rex, res->wex, si_f->exp, si_b->exp, si_f->state, si_b->state);
#endif
#ifdef DEBUG_DEV
/* this may only happen when no timeout is set or in case of an FSM bug */