Home GnuPG
Diffusion GnuPG 088d71d3671e

common: New function log_debug_with_string.
088d71d3671eUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

common: New function log_debug_with_string.

* common/logging.c (do_logv): Factor some code out to ...
(print_prefix): new.
(log_logv): Add arg EXTRASTRING and print it.  Change all callers to
pass NULL for it.
(log_debug_with_string): New.  Uses EXTRASTRING.

This function can be used to print a human readable buffer in addition
to a log message to the log stream. This function will keep all lines
together and prefix them with ">> ".

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jan 11 2017, 10:21 AM
Parents
rG7249ab0f95d1: common: Avoid unnecessary ambiguity in argparse.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG088d71d3671e: common: New function log_debug_with_string. (authored by Werner Koch <wk@gnupg.org>).Jan 11 2017, 10:42 AM