aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/per_support.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-09-18 20:05:55 +0000
committerLev Walkin <vlm@lionet.info>2006-09-18 20:05:55 +0000
commit0a8aa6043f01268efe03bade3688d50249129bc1 (patch)
tree99317b3d03080ca0332b711d949a6892a9ec7cab /skeletons/per_support.c
parent5a621d6a521599d478f0b3da72c6668bb2eaad89 (diff)
per encoding support
Diffstat (limited to 'skeletons/per_support.c')
-rw-r--r--skeletons/per_support.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/skeletons/per_support.c b/skeletons/per_support.c
index b0149f89..c8344193 100644
--- a/skeletons/per_support.c
+++ b/skeletons/per_support.c
@@ -18,6 +18,9 @@ per_get_few_bits(asn_per_data_t *pd, int nbits) {
if(nbits < 0 || pd->nboff + nbits > pd->nbits)
return -1;
+ ASN_DEBUG("[PER get %d bits from %p+%d bits]",
+ nbits, pd->buffer, pd->nboff);
+
/*
* Normalize position indicator.
*/
@@ -190,6 +193,9 @@ 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 to %p+%d bits]",
+ obits, po->buffer, po->nboff);
+
/*
* Normalize position indicator.
*/