mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02:00
CLEANUP: debug: Use DPRINTF instead of fprintf into #ifdef DEBUG_FULL/#endif
This commit is contained in:
parent
165f07e7b4
commit
56803b1c98
@ -770,9 +770,7 @@ int assign_server_address(struct stream *s)
|
|||||||
struct connection *cli_conn = objt_conn(strm_orig(s));
|
struct connection *cli_conn = objt_conn(strm_orig(s));
|
||||||
struct connection *srv_conn = cs_conn(objt_cs(s->si[1].end));
|
struct connection *srv_conn = cs_conn(objt_cs(s->si[1].end));
|
||||||
|
|
||||||
#ifdef DEBUG_FULL
|
DPRINTF(stderr,"assign_server_address : s=%p\n",s);
|
||||||
fprintf(stderr,"assign_server_address : s=%p\n",s);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if ((s->flags & SF_DIRECT) || (s->be->lbprm.algo & BE_LB_KIND)) {
|
if ((s->flags & SF_DIRECT) || (s->be->lbprm.algo & BE_LB_KIND)) {
|
||||||
/* A server is necessarily known for this stream */
|
/* A server is necessarily known for this stream */
|
||||||
|
@ -2441,13 +2441,11 @@ struct task *process_stream(struct task *t)
|
|||||||
if (si_b->exp)
|
if (si_b->exp)
|
||||||
t->expire = tick_first(t->expire, si_b->exp);
|
t->expire = tick_first(t->expire, si_b->exp);
|
||||||
|
|
||||||
#ifdef DEBUG_FULL
|
DPRINTF(stderr,
|
||||||
fprintf(stderr,
|
|
||||||
"[%u] queuing with exp=%u req->rex=%u req->wex=%u req->ana_exp=%u"
|
"[%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",
|
" 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,
|
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);
|
res->rex, res->wex, si_f->exp, si_b->exp, si_f->state, si_b->state);
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef DEBUG_DEV
|
#ifdef DEBUG_DEV
|
||||||
/* this may only happen when no timeout is set or in case of an FSM bug */
|
/* this may only happen when no timeout is set or in case of an FSM bug */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user