mirror of https://gerrit.osmocom.org/asn1c
proper types for printing
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1371 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
53fa9efb7b
commit
3dc56b9824
|
@ -183,7 +183,7 @@ uper_open_type_get_complex(asn_codec_ctx_t *ctx, asn_TYPE_descriptor_t *td,
|
|||
case 0: break;
|
||||
default:
|
||||
ASN_DEBUG("Non-blank padding (%d bits 0x%02x)",
|
||||
padding, pvalue);
|
||||
padding, (int)pvalue);
|
||||
UPDRESTOREPD;
|
||||
_ASN_DECODE_FAILED;
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ per_get_few_bits(asn_per_data_t *pd, int nbits) {
|
|||
pd->moved,
|
||||
(((int)pd->buffer) & 0xf),
|
||||
pd->nboff, pd->nbits, pd->nbits - pd->nboff,
|
||||
accum);
|
||||
(int)accum);
|
||||
|
||||
return accum;
|
||||
}
|
||||
|
@ -273,7 +273,7 @@ per_put_few_bits(asn_per_outp_t *po, uint32_t bits, int obits) {
|
|||
if(obits <= 0 || obits >= 32) return obits ? -1 : 0;
|
||||
|
||||
ASN_DEBUG("[PER put %d bits %x to %p+%d bits]",
|
||||
obits, bits, po->buffer, po->nboff);
|
||||
obits, (int)bits, po->buffer, po->nboff);
|
||||
|
||||
/*
|
||||
* Normalize position indicator.
|
||||
|
@ -310,7 +310,8 @@ per_put_few_bits(asn_per_outp_t *po, uint32_t bits, int obits) {
|
|||
/* Clear data of debris before meaningful bits */
|
||||
bits &= (((uint32_t)1 << obits) - 1);
|
||||
|
||||
ASN_DEBUG("[PER out %d %u/%x (t=%d,o=%d) %x&%x=%x]", obits, bits, bits,
|
||||
ASN_DEBUG("[PER out %d %u/%x (t=%d,o=%d) %x&%x=%x]", obits,
|
||||
(int)bits, (int)bits,
|
||||
po->nboff - obits, off, buf[0], omsk&0xff, buf[0] & omsk);
|
||||
|
||||
if(off <= 8) /* Completely within 1 byte */
|
||||
|
@ -339,7 +340,7 @@ per_put_few_bits(asn_per_outp_t *po, uint32_t bits, int obits) {
|
|||
}
|
||||
|
||||
ASN_DEBUG("[PER out %u/%x => %02x buf+%d]",
|
||||
bits, bits, buf[0], po->buffer - po->tmpspace);
|
||||
(int)bits, (int)bits, buf[0], po->buffer - po->tmpspace);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue