Commit 345e4c6a authored by Lev Walkin's avatar Lev Walkin

proper format strings

parent 5c541f11
......@@ -334,8 +334,8 @@ INTEGER__xer_body_decode(asn_TYPE_descriptor_t *td, void *sptr, const void *chun
} state = ST_SKIPSPACE;
if(chunk_size)
ASN_DEBUG("INTEGER body %d 0x%2x..0x%2x",
chunk_size, *lstart, lstop[-1]);
ASN_DEBUG("INTEGER body %ld 0x%2x..0x%2x",
(long)chunk_size, *lstart, lstop[-1]);
/*
* We may have received a tag here. It will be processed inline.
......
......@@ -1424,7 +1424,7 @@ OCTET_STRING_encode_uper(asn_TYPE_descriptor_t *td,
asn_per_constraint_t *ct = pc ? &pc->size
: &asn_DEF_OCTET_STRING_constraint;
const BIT_STRING_t *st = (const BIT_STRING_t *)sptr;
asn_enc_rval_t er;
asn_enc_rval_t er = { 0, 0 };
int ct_extensible = ct->flags & APC_EXTENSIBLE;
int inext = 0; /* Lies not within extension root */
int unit_bits = (specs->subvariant != 1) * 7 + 1;
......@@ -1509,7 +1509,8 @@ OCTET_STRING_encode_uper(asn_TYPE_descriptor_t *td,
ssize_t maySave = uper_put_length(po, sizeinunits);
if(maySave < 0) _ASN_ENCODE_FAILED;
ASN_DEBUG("Encoding %d of %d", maySave, sizeinunits);
ASN_DEBUG("Encoding %ld of %ld",
(long)maySave, (long)sizeinunits);
if(squeeze) {
ret = OCTET_STRING_per_put_squeezed(po, buf,
......
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