aboutsummaryrefslogtreecommitdiffstats
path: root/g10/import.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2025-04-30 13:02:00 +0000
committerWerner Koch <[email protected]>2025-04-30 13:06:40 +0000
commita9445bbb1d979e059cf71b38b7fa88ff3d89e916 (patch)
tree16442d5542a23d58e43f15474870b0e90dc01464 /g10/import.c
parentdoc: Register DCO for Collin Funk (diff)
downloadgnupg-a9445bbb1d979e059cf71b38b7fa88ff3d89e916.tar.gz
gnupg-a9445bbb1d979e059cf71b38b7fa88ff3d89e916.zip
gpg: Add debug flag "recsel".
* g10/gpg.c: Include recsel.h. (debug_flags): New flag "recsel". (set_debug): Set it. * g10/options.h (DBG_RECSEL_VALUE, DBG_RECSEL): New. * g10/import.c (impex_filter_getval): Add debug diagnostics. * g10/keylist.c (parse_and_set_list_filter): Dump the record filter. * common/recsel.c (recsel_debug): New variable. (recsel_set_debug): New function. (recsel_select): Add debug output if requested.
Diffstat (limited to 'g10/import.c')
-rw-r--r--g10/import.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/import.c b/g10/import.c
index 9d92268c5..9fbebf39d 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -1464,6 +1464,8 @@ impex_filter_getval (void *cookie, const char *propname)
/* We allow a prefix delimited by a slash to limit the scope of the
* keyword. Note that "pub" also includes "sec" and "sub" includes
* "ssb". */
+ if (DBG_RECSEL) /* Printing the packet type is useful. */
+ log_debug ("%s: pkttype=%s\n", __func__, pkttype_str (node->pkt->pkttype));
if ((s=strchr (propname, '/')) && s != propname)
{
size_t n = s - propname;