aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2014-09-17 01:24:10 -0700
committerLev Walkin <vlm@lionet.info>2014-09-17 01:24:10 -0700
commit3c7ac6cc935780071665535bec4533cde1958524 (patch)
tree21e8bbb8acf3e916fdfa3dc10e2705e0b2fcc563
parent15d38f45dff01d09e8f524b9f4fb139153eed362 (diff)
conditional debug
-rw-r--r--asn1c/tests/check-src/check-126.-gen-PER.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/asn1c/tests/check-src/check-126.-gen-PER.c b/asn1c/tests/check-src/check-126.-gen-PER.c
index ca3b34bc..5b620877 100644
--- a/asn1c/tests/check-src/check-126.-gen-PER.c
+++ b/asn1c/tests/check-src/check-126.-gen-PER.c
@@ -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,