comparison dbutil.c @ 1432:41dca1e5ea34 fuzz

fix dss debug printing
author Matt Johnston <matt@ucc.asn.au>
date Sat, 24 Jun 2017 10:34:58 +0800
parents 6c92e97553f1
children 4afde04f0607
comparison
equal deleted inserted replaced
1431:793c43cf523e 1432:41dca1e5ea34
397 } 397 }
398 398
399 void printmpint(const char *label, mp_int *mp) { 399 void printmpint(const char *label, mp_int *mp) {
400 buffer *buf = buf_new(1000); 400 buffer *buf = buf_new(1000);
401 buf_putmpint(buf, mp); 401 buf_putmpint(buf, mp);
402 fprintf(stderr, "%d bits ", mp_count_bits(mp));
402 printhex(label, buf->data, buf->len); 403 printhex(label, buf->data, buf->len);
403 buf_free(buf); 404 buf_free(buf);
404 405
405 } 406 }
406 #endif 407 #endif