From 54db6a4b44124ed7e95897174f32262482b4b0cb Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Tue, 19 Mar 2019 21:59:54 -0400 Subject: ecc: Adjust debugging output * cipher/ecc.c (ecc_check_secret_key): Adjust debugging output to use full column titles. -- Without this change, the debugging headers say "inf" and "nam". With this change, the alignment for all columns stay the same, but the headers say "info" and "name", which are much more legible. Signed-off-by: Daniel Kahn Gillmor GnuPG-bug-id: 4414 --- cipher/ecc.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'cipher') diff --git a/cipher/ecc.c b/cipher/ecc.c index 3f221a24..06010ef2 100644 --- a/cipher/ecc.c +++ b/cipher/ecc.c @@ -812,20 +812,20 @@ ecc_check_secret_key (gcry_sexp_t keyparms) } if (DBG_CIPHER) { - log_debug ("ecc_testkey inf: %s/%s\n", + log_debug ("ecc_testkey info: %s/%s\n", _gcry_ecc_model2str (sk.E.model), _gcry_ecc_dialect2str (sk.E.dialect)); if (sk.E.name) - log_debug ("ecc_testkey nam: %s\n", sk.E.name); - log_printmpi ("ecc_testkey p", sk.E.p); - log_printmpi ("ecc_testkey a", sk.E.a); - log_printmpi ("ecc_testkey b", sk.E.b); - log_printpnt ("ecc_testkey g", &sk.E.G, NULL); - log_printmpi ("ecc_testkey n", sk.E.n); - log_printmpi ("ecc_testkey h", sk.E.h); - log_printmpi ("ecc_testkey q", mpi_q); + log_debug ("ecc_testkey name: %s\n", sk.E.name); + log_printmpi ("ecc_testkey p", sk.E.p); + log_printmpi ("ecc_testkey a", sk.E.a); + log_printmpi ("ecc_testkey b", sk.E.b); + log_printpnt ("ecc_testkey g", &sk.E.G, NULL); + log_printmpi ("ecc_testkey n", sk.E.n); + log_printmpi ("ecc_testkey h", sk.E.h); + log_printmpi ("ecc_testkey q", mpi_q); if (!fips_mode ()) - log_printmpi ("ecc_testkey d", sk.d); + log_printmpi ("ecc_testkey d", sk.d); } if (!sk.E.p || !sk.E.a || !sk.E.b || !sk.E.G.x || !sk.E.n || !sk.E.h || !sk.d) { @@ -873,7 +873,7 @@ ecc_check_secret_key (gcry_sexp_t keyparms) xfree (curvename); sexp_release (l1); if (DBG_CIPHER) - log_debug ("ecc_testkey => %s\n", gpg_strerror (rc)); + log_debug ("ecc_testkey => %s\n", gpg_strerror (rc)); return rc; } -- cgit v1.2.1