Skip to content

Commit

Permalink
jer: Remove implicit variables in ASN_DEBUGs
Browse files Browse the repository at this point in the history
  • Loading branch information
v0-e committed Jan 15, 2024
1 parent 1b1e30a commit 818b21b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
8 changes: 4 additions & 4 deletions skeletons/constr_CHOICE_jer.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx,
}

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], scv=%d",
ch_size>0?((const uint8_t *)buf_ptr)[0]:'?',
ch_size>1?((const uint8_t *)buf_ptr)[1]:'?',
ch_size>2?((const uint8_t *)buf_ptr)[2]:'?',
ch_size>3?((const uint8_t *)buf_ptr)[3]:'?',
json_key, scv);
scv);

/* Skip the extensions section */
if(ctx->phase == 4) {
Expand Down Expand Up @@ -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]"
" (ph=%d, key=%s)",
" (ph=%d)",
ch_size>0?((const uint8_t *)buf_ptr)[0]:'?',
ch_size>1?((const uint8_t *)buf_ptr)[1]:'?',
ch_size>2?((const uint8_t *)buf_ptr)[2]:'?',
ch_size>3?((const uint8_t *)buf_ptr)[3]:'?',
td->name, ctx->phase, json_key);
td->name, ctx->phase);
break;
}

Expand Down
4 changes: 2 additions & 2 deletions skeletons/constr_SEQUENCE_jer.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ SEQUENCE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx,
}

scv = jer_check_sym(ptr, ch_size, NULL);
ASN_DEBUG("JER/SEQUENCE: scv = %d, ph=%d [%s]",
scv, ctx->phase, json_key);
ASN_DEBUG("JER/SEQUENCE: scv = %d, ph=%d",
scv, ctx->phase);


/* Skip the extensions section */
Expand Down
7 changes: 3 additions & 4 deletions skeletons/constr_SET_OF_jer.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ SET_OF_decode_jer(const asn_codec_ctx_t *opt_codec_ctx,
asn_dec_rval_t tmprval = {RC_OK, 0};

/* Invoke the inner type decoder, m.b. multiple times */
ASN_DEBUG("JER/SET OF element [%s]", elm_tag(*element->name) ?
element->name : element->type->xml_tag);
ASN_DEBUG("JER/SET OF element [%s]", element->type->xml_tag);
tmprval = element->type->op->jer_decoder(opt_codec_ctx,
element->type,
&ctx->ptr,
Expand Down Expand Up @@ -124,8 +123,8 @@ SET_OF_decode_jer(const asn_codec_ctx_t *opt_codec_ctx,
}

scv = jer_check_sym(buf_ptr, ch_size, NULL);
ASN_DEBUG("JER/SET OF: scv = %d, ph=%d t=%s",
scv, ctx->phase, json_key);
ASN_DEBUG("JER/SET OF: scv = %d, ph=%d",
scv, ctx->phase);
switch(scv) {
case JCK_AEND:
if(ctx->phase == 0) break;
Expand Down
4 changes: 2 additions & 2 deletions skeletons/constr_SET_jer.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ SET_decode_jer(const asn_codec_ctx_t *opt_codec_ctx,
}

scv = jer_check_sym(ptr, ch_size, NULL);
ASN_DEBUG("JER/SET: scv = %d, ph=%d [%s]",
scv, ctx->phase, json_key);
ASN_DEBUG("JER/SET: scv = %d, ph=%d",
scv, ctx->phase);


/* Skip the extensions section */
Expand Down

0 comments on commit 818b21b

Please sign in to comment.