Skip to content

Commit

Permalink
jbuf: fix RELEASE build with DEBUG_LEVEL 6 (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 authored Apr 11, 2022
1 parent 79f30a3 commit 60fe727
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jbuf/jbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ static void frame_alloc(struct jbuf *jb, struct frame **f)
le = jb->framel.head;
f0 = le->data;

#if JBUF_STAT
STAT_INC(n_overflow);
DEBUG_INFO("drop 1 old frame seq=%u (total dropped %u)\n",
f0->hdr.seq, jb->stat.n_overflow);
#endif

f0->mem = mem_deref(f0->mem);
list_unlink(le);
Expand Down

0 comments on commit 60fe727

Please sign in to comment.