mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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.
This commit is contained in:
parent
28591a9f3a
commit
a9445bbb1d
6 changed files with 29 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue