mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Conditionalize some debugging code that didn't use the DEBUG macro.
MFC after: 1 week
This commit is contained in:
parent
7eb2f34d73
commit
7f807cb867
1 changed files with 10 additions and 8 deletions
|
|
@ -143,14 +143,16 @@ _http_new_chunk(struct cookie *c)
|
|||
c->chunksize = c->chunksize * 16 + 10 + tolower(*p) - 'a';
|
||||
|
||||
#ifndef NDEBUG
|
||||
c->total += c->chunksize;
|
||||
if (c->chunksize == 0)
|
||||
fprintf(stderr, "\033[1m_http_fillbuf(): "
|
||||
"end of last chunk\033[m\n");
|
||||
else
|
||||
fprintf(stderr, "\033[1m_http_fillbuf(): "
|
||||
"new chunk: %lu (%lu)\033[m\n",
|
||||
(unsigned long)c->chunksize, (unsigned long)c->total);
|
||||
if (fetchDebug) {
|
||||
c->total += c->chunksize;
|
||||
if (c->chunksize == 0)
|
||||
fprintf(stderr, "\033[1m_http_fillbuf(): "
|
||||
"end of last chunk\033[m\n");
|
||||
else
|
||||
fprintf(stderr, "\033[1m_http_fillbuf(): "
|
||||
"new chunk: %lu (%lu)\033[m\n",
|
||||
(unsigned long)c->chunksize, (unsigned long)c->total);
|
||||
}
|
||||
#endif
|
||||
|
||||
return c->chunksize;
|
||||
|
|
|
|||
Loading…
Reference in a new issue