Commit 290bfa2f authored by v0-e's avatar v0-e

Revert "jer: Remove implicit variables in ASN_DEBUGs"

This reverts commit 818b21ba.
parent 818b21ba
...@@ -140,12 +140,12 @@ CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, ...@@ -140,12 +140,12 @@ 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], scv=%d", ASN_DEBUG("JER/CHOICE checked [%c%c%c%c] vs [%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]:'?',
ch_size>3?((const uint8_t *)buf_ptr)[3]:'?', ch_size>3?((const uint8_t *)buf_ptr)[3]:'?',
scv); json_key, scv);
/* Skip the extensions section */ /* Skip the extensions section */
if(ctx->phase == 4) { if(ctx->phase == 4) {
...@@ -249,12 +249,12 @@ CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, ...@@ -249,12 +249,12 @@ CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx,
} }
ASN_DEBUG("Unexpected JSON key [%c%c%c%c] in CHOICE [%s]" ASN_DEBUG("Unexpected JSON key [%c%c%c%c] in CHOICE [%s]"
" (ph=%d)", " (ph=%d, key=%s)",
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]:'?',
ch_size>3?((const uint8_t *)buf_ptr)[3]:'?', ch_size>3?((const uint8_t *)buf_ptr)[3]:'?',
td->name, ctx->phase); td->name, ctx->phase, json_key);
break; break;
} }
......
...@@ -145,8 +145,8 @@ SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, ...@@ -145,8 +145,8 @@ SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx,
} }
scv = jer_check_sym(ptr, ch_size, NULL); scv = jer_check_sym(ptr, ch_size, NULL);
ASN_DEBUG("JER/SEQUENCE: scv = %d, ph=%d", ASN_DEBUG("JER/SEQUENCE: scv = %d, ph=%d [%s]",
scv, ctx->phase); scv, ctx->phase, json_key);
/* Skip the extensions section */ /* Skip the extensions section */
......
...@@ -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]", elm_tag(*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,
...@@ -123,8 +124,8 @@ SET_OF_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, ...@@ -123,8 +124,8 @@ SET_OF_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/SET OF: scv = %d, ph=%d", ASN_DEBUG("JER/SET OF: scv = %d, ph=%d t=%s",
scv, ctx->phase); scv, ctx->phase, json_key);
switch(scv) { switch(scv) {
case JCK_AEND: case JCK_AEND:
if(ctx->phase == 0) break; if(ctx->phase == 0) break;
......
...@@ -147,8 +147,8 @@ SET_decode_jer(const asn_codec_ctx_t *opt_codec_ctx, ...@@ -147,8 +147,8 @@ SET_decode_jer(const asn_codec_ctx_t *opt_codec_ctx,
} }
scv = jer_check_sym(ptr, ch_size, NULL); scv = jer_check_sym(ptr, ch_size, NULL);
ASN_DEBUG("JER/SET: scv = %d, ph=%d", ASN_DEBUG("JER/SET: scv = %d, ph=%d [%s]",
scv, ctx->phase); scv, ctx->phase, json_key);
/* Skip the extensions section */ /* Skip the extensions section */
......
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