Commit 3c7ac6cc authored by Lev Walkin's avatar Lev Walkin

conditional debug

parent 15d38f45
...@@ -114,17 +114,19 @@ load_object_from(const char *fname, unsigned char *fbuf, size_t size, enum encty ...@@ -114,17 +114,19 @@ load_object_from(const char *fname, unsigned char *fbuf, size_t size, enum encty
st = 0; st = 0;
do { do {
fprintf(stderr, "\nDecoding bytes %d..%d (left %d) [%s]\n", ASN_DEBUG("\nDecoding bytes %d..%d (left %d) [%s]",
fbuf_offset, fbuf_offset,
fbuf_chunk < fbuf_left fbuf_chunk < fbuf_left
? fbuf_chunk : fbuf_left, ? fbuf_chunk : fbuf_left,
fbuf_left, fbuf_left,
fname); fname);
#ifdef EMIT_ASN_DEBUG
if(st) { if(st) {
fprintf(stderr, "=== currently ===\n"); fprintf(stderr, "=== currently ===\n");
asn_fprint(stderr, &asn_DEF_PDU, st); asn_fprint(stderr, &asn_DEF_PDU, st);
fprintf(stderr, "=== end ===\n"); fprintf(stderr, "=== end ===\n");
} }
#endif
switch(how) { switch(how) {
case AS_XER: case AS_XER:
rval = xer_decode(0, &asn_DEF_PDU, (void **)&st, rval = xer_decode(0, &asn_DEF_PDU, (void **)&st,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment