mirror of https://gerrit.osmocom.org/asn1c
portability
This commit is contained in:
parent
9215729ab2
commit
a6a926a887
|
@ -286,9 +286,9 @@ OCTET_STRING_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
|
|||
|
||||
ll = ber_fetch_length(tlv_constr,
|
||||
(char *)buf_ptr + tl, Left - tl, &tlv_len);
|
||||
ASN_DEBUG("Got tag=%s, tc=%d, left=%ld, tl=%d, len=%d, ll=%d",
|
||||
ASN_DEBUG("Got tag=%s, tc=%d, left=%ld, tl=%ld, len=%ld, ll=%ld",
|
||||
ber_tlv_tag_string(tlv_tag), tlv_constr,
|
||||
(long)Left, tl, tlv_len, ll);
|
||||
(long)Left, (long)tl, (long)tlv_len, (long)ll);
|
||||
switch(ll) {
|
||||
case -1: RETURN(RC_FAIL);
|
||||
case 0: RETURN(RC_WMORE);
|
||||
|
|
|
@ -573,8 +573,8 @@ SEQUENCE_encode_der(asn_TYPE_descriptor_t *td,
|
|||
if(tmperval.encoded == -1)
|
||||
return tmperval;
|
||||
computed_size -= tmperval.encoded;
|
||||
ASN_DEBUG("Member %d %s of SEQUENCE %s encoded in %d bytes",
|
||||
edx, elm->name, td->name, tmperval.encoded);
|
||||
ASN_DEBUG("Member %d %s of SEQUENCE %s encoded in %ld bytes",
|
||||
edx, elm->name, td->name, (long)tmperval.encoded);
|
||||
}
|
||||
|
||||
if(computed_size != 0) {
|
||||
|
|
Loading…
Reference in New Issue