Commit 0d3f1b17 authored by v0-e's avatar v0-e

jer: CHOICE and SET OF decode debug info enhancements

parent e43041cb
...@@ -140,7 +140,7 @@ CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, ...@@ -140,7 +140,7 @@ CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx,
} }
scv = jer_check_sym(buf_ptr, ch_size, NULL); scv = jer_check_sym(buf_ptr, ch_size, NULL);
ASN_DEBUG("JER/CHOICE checked [%c%c%c%c] vs [%s], scv=%d", ASN_DEBUG("JER/CHOICE checked [%c%c%c%c] of [%s], scv=%d",
ch_size>0?((const uint8_t *)buf_ptr)[0]:'?', ch_size>0?((const uint8_t *)buf_ptr)[0]:'?',
ch_size>1?((const uint8_t *)buf_ptr)[1]:'?', ch_size>1?((const uint8_t *)buf_ptr)[1]:'?',
ch_size>2?((const uint8_t *)buf_ptr)[2]:'?', ch_size>2?((const uint8_t *)buf_ptr)[2]:'?',
...@@ -248,7 +248,7 @@ CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, ...@@ -248,7 +248,7 @@ CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx,
break; break;
} }
ASN_DEBUG("Unexpected JSON key [%c%c%c%c] in CHOICE [%s]" ASN_DEBUG("Unexpected JSON token [%c%c%c%c] in CHOICE [%s]"
" (ph=%d)", " (ph=%d)",
ch_size>0?((const uint8_t *)buf_ptr)[0]:'?', ch_size>0?((const uint8_t *)buf_ptr)[0]:'?',
ch_size>1?((const uint8_t *)buf_ptr)[1]:'?', ch_size>1?((const uint8_t *)buf_ptr)[1]:'?',
......
...@@ -79,7 +79,8 @@ SET_OF_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, ...@@ -79,7 +79,8 @@ SET_OF_decode_jer(const asn_codec_ctx_t *opt_codec_ctx,
asn_dec_rval_t tmprval = {RC_OK, 0}; asn_dec_rval_t tmprval = {RC_OK, 0};
/* Invoke the inner type decoder, m.b. multiple times */ /* Invoke the inner type decoder, m.b. multiple times */
ASN_DEBUG("JER/SET OF element [%s]", element->type->xml_tag); ASN_DEBUG("JER/SET OF element [%s]",
(*element->name) ? element->name : element->type->xml_tag);
tmprval = element->type->op->jer_decoder(opt_codec_ctx, tmprval = element->type->op->jer_decoder(opt_codec_ctx,
element->type, element->type,
&ctx->ptr, &ctx->ptr,
......
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