Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jer: Remove implicit variables in ASN_DEBUGs #169

Merged
merged 4 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 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] of [%s], 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);
td->name, scv);
mouse07410 marked this conversation as resolved.
Show resolved Hide resolved

/* Skip the extensions section */
if(ctx->phase == 4) {
Expand Down Expand Up @@ -248,13 +248,13 @@ CHOICE_decode_jer(const asn_codec_ctx_t *opt_codec_ctx,
break;
}

ASN_DEBUG("Unexpected JSON key [%c%c%c%c] in CHOICE [%s]"
" (ph=%d, key=%s)",
ASN_DEBUG("Unexpected JSON token [%c%c%c%c] in CHOICE [%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);
v0-e marked this conversation as resolved.
Show resolved Hide resolved
break;
}

Expand Down
2 changes: 1 addition & 1 deletion skeletons/constr_SEQUENCE_jer.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ 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);
scv, ctx->phase, td->name);


/* Skip the extensions section */
Expand Down
6 changes: 3 additions & 3 deletions skeletons/constr_SET_OF_jer.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ 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);
v0-e marked this conversation as resolved.
Show resolved Hide resolved
ASN_DEBUG("JER/SET OF element [%s]",
(*element->name) ? element->name : element->type->xml_tag);
tmprval = element->type->op->jer_decoder(opt_codec_ctx,
element->type,
&ctx->ptr,
Expand Down Expand Up @@ -125,7 +125,7 @@ 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);
scv, ctx->phase, td->name);
switch(scv) {
case JCK_AEND:
if(ctx->phase == 0) break;
Expand Down
2 changes: 1 addition & 1 deletion skeletons/constr_SET_jer.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ 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);
scv, ctx->phase, td->name);


/* Skip the extensions section */
Expand Down
Loading