-#if DEBUG > 1
- int i;
- DPRINT2("ppp%d: vj_uncomp_tcp failed, pkt len %d [",
- cp->unit, len);
- for (i = 0; i < len && i < 8; ++i)
- DPRINT1(" %x", dp[i]);
- DPRINT3("] c=%d u=%d e=%d\n",
- cp->vj_comp.stats.vjs_compressedin,
- cp->vj_comp.stats.vjs_uncompressedin,
- cp->vj_comp.stats.vjs_errorin);
-#endif
+ if (cp->flags & DBGLOG)
+ DPRINT2("ppp%d: vj_uncomp_tcp failed, pkt len %d\n",
+ cp->unit, len);