log: Try to print s-expressions in a more compact format.
authorWerner Koch <wk@gnupg.org>
Mon, 30 Sep 2013 11:20:06 +0000 (13:20 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 30 Sep 2013 18:44:50 +0000 (20:44 +0200)
commitd69a13d3d1c14ad6a6aa7cd349d6d2dfb152d422
tree5e96dcc38220ca22368d3b4b497f02a2fc9bdba4
parent68cefd0f1d60ac33b58031df9b1d165cb1bf0f14
log: Try to print s-expressions in a more compact format.

* src/misc.c (count_closing_parens): New.
(_gcry_log_printsxp): Use new function.
* mpi/ec.c (_gcry_mpi_point_log): Take care of a NULL point.

Signed-off-by: Werner Koch <wk@gnupg.org>
mpi/ec.c
src/misc.c