From 7fe4be0416cdc9269011bc4213b8a22d6ced295c Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Thu, 17 Dec 2015 10:55:29 +0100 Subject: [PATCH] gpg: Display the key that is invalid, not the search description. * g10/getkey.c (parse_def_secret_key): Display the key that is invalid, not the search description. -- Signed-off-by: Neal H. Walfield --- g10/getkey.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/g10/getkey.c b/g10/getkey.c index 589f24080..ad0c207bf 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -1225,22 +1225,22 @@ parse_def_secret_key (ctrl_t ctrl) if (pk->flags.revoked) { if (DBG_LOOKUP) - log_debug ("not using %s as default key, %s\n", - t->d, "revoked"); + log_debug (_("not using %s as default key, %s"), + keystr_from_pk (pk), "revoked"); continue; } if (pk->has_expired) { if (DBG_LOOKUP) - log_debug ("not using %s as default key, %s\n", - t->d, "expired"); + log_debug (_("not using %s as default key, %s"), + keystr_from_pk (pk), "expired"); continue; } if (pk_is_disabled (pk)) { if (DBG_LOOKUP) - log_debug ("not using %s as default key, %s\n", - t->d, "disabled"); + log_debug (_("not using %s as default key, %s"), + keystr_from_pk (pk), "disabled"); continue; }