summaryrefslogtreecommitdiffhomepage
path: root/dbutil.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-06-24 10:34:58 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-06-24 10:34:58 +0800
commit17a9b8802f0306010f5d1f071dce2b3ca80ae415 (patch)
tree3a9132478a270c96911681188c7ced75c05a9735 /dbutil.c
parent9b6f7fc9af56a4339194df490ec44b0cc7c7f55f (diff)
fix dss debug printing
--HG-- branch : fuzz
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dbutil.c b/dbutil.c
index aadc20e..5ebad15 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -399,6 +399,7 @@ void printhex(const char * label, const unsigned char * buf, int len) {
void printmpint(const char *label, mp_int *mp) {
buffer *buf = buf_new(1000);
buf_putmpint(buf, mp);
+ fprintf(stderr, "%d bits ", mp_count_bits(mp));
printhex(label, buf->data, buf->len);
buf_free(buf);