gpg: Display the key that is invalid, not the search description.
authorNeal H. Walfield <neal@g10code.com>
Thu, 17 Dec 2015 09:55:29 +0000 (10:55 +0100)
committerNeal H. Walfield <neal@g10code.com>
Tue, 22 Dec 2015 14:03:48 +0000 (15:03 +0100)
* g10/getkey.c (parse_def_secret_key): Display the key that is
invalid, not the search description.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
g10/getkey.c

index 589f240..ad0c207 100644 (file)
@@ -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;
             }