aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-12-17 09:55:29 +0000
committerNeal H. Walfield <[email protected]>2015-12-22 14:03:48 +0000
commit7fe4be0416cdc9269011bc4213b8a22d6ced295c (patch)
tree4a3c67353025e71a1b6c21cf37da406dac92561b
parentgpg: Mark more options as coming from the config file (when this holds) (diff)
downloadgnupg-7fe4be0416cdc9269011bc4213b8a22d6ced295c.tar.gz
gnupg-7fe4be0416cdc9269011bc4213b8a22d6ced295c.zip
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 <[email protected]>
-rw-r--r--g10/getkey.c12
1 files 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;
}