Skip to content

Commit

Permalink
conditional debug
Browse files Browse the repository at this point in the history
  • Loading branch information
vlm committed Sep 17, 2014
1 parent 15d38f4 commit 3c7ac6c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion asn1c/tests/check-src/check-126.-gen-PER.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,19 @@ load_object_from(const char *fname, unsigned char *fbuf, size_t size, enum encty
st = 0;

do {
fprintf(stderr, "\nDecoding bytes %d..%d (left %d) [%s]\n",
ASN_DEBUG("\nDecoding bytes %d..%d (left %d) [%s]",
fbuf_offset,
fbuf_chunk < fbuf_left
? fbuf_chunk : fbuf_left,
fbuf_left,
fname);
#ifdef EMIT_ASN_DEBUG
if(st) {
fprintf(stderr, "=== currently ===\n");
asn_fprint(stderr, &asn_DEF_PDU, st);
fprintf(stderr, "=== end ===\n");
}
#endif
switch(how) {
case AS_XER:
rval = xer_decode(0, &asn_DEF_PDU, (void **)&st,
Expand Down

0 comments on commit 3c7ac6c

Please sign in to comment.