Skip to content
Snippets Groups Projects
Commit 1e3ccbb2 authored by Lev Walkin's avatar Lev Walkin
Browse files

printing with debug

parent 523ae093
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,7 @@ NativeReal_decode_ber(asn_codec_ctx_t *opt_codec_ctx, ...@@ -109,7 +109,7 @@ NativeReal_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
rval.code = RC_OK; rval.code = RC_OK;
rval.consumed += length; rval.consumed += length;
ASN_DEBUG("Took %ld/%ld bytes to encode %s (%d)", ASN_DEBUG("Took %ld/%ld bytes to encode %s (%f)",
(long)rval.consumed, (long)length, td->name, *Dbl); (long)rval.consumed, (long)length, td->name, *Dbl);
return rval; return rval;
......
...@@ -247,9 +247,9 @@ OCTET_STRING_decode_ber(asn_codec_ctx_t *opt_codec_ctx, ...@@ -247,9 +247,9 @@ OCTET_STRING_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
ASN_DEBUG("%p, s->l=%ld, s->wn=%ld, s->g=%ld\n", sel, ASN_DEBUG("%p, s->l=%ld, s->wn=%ld, s->g=%ld\n", sel,
(long)sel?sel->left:0, (long)(sel?sel->left:0),
(long)sel?sel->want_nulls:0, (long)(sel?sel->want_nulls:0),
(long)sel?sel->got:0 (long)(sel?sel->got:0)
); );
if(sel && sel->left <= 0 && sel->want_nulls == 0) { if(sel && sel->left <= 0 && sel->want_nulls == 0) {
if(sel->prev) { if(sel->prev) {
...@@ -273,7 +273,8 @@ OCTET_STRING_decode_ber(asn_codec_ctx_t *opt_codec_ctx, ...@@ -273,7 +273,8 @@ OCTET_STRING_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
tl = ber_fetch_tag(buf_ptr, Left, &tlv_tag); tl = ber_fetch_tag(buf_ptr, Left, &tlv_tag);
ASN_DEBUG("fetch tag(size=%ld,L=%ld), %sstack, left=%ld, wn=%ld, tl=%ld", ASN_DEBUG("fetch tag(size=%ld,L=%ld), %sstack, left=%ld, wn=%ld, tl=%ld",
(long)size, (long)Left, sel?"":"!", (long)size, (long)Left, sel?"":"!",
(long)sel?sel->left:0, (long)sel?sel->want_nulls:0, (long)(sel?sel->left:0),
(long)(sel?sel->want_nulls:0),
(long)tl); (long)tl);
switch(tl) { switch(tl) {
case -1: RETURN(RC_FAIL); case -1: RETURN(RC_FAIL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment