diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2016-08-12 07:37:57 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-08-12 12:16:19 +0200 |
commit | 61c2a1fa6d6cb345f9d81f4bdd3f8f8ddac1ea3e (patch) | |
tree | d59af6ff4b4aef85cdc81e7a75b0249d6afc835f /sm | |
parent | gpg: New option --input-size-hint. (diff) | |
download | gnupg2-61c2a1fa6d6cb345f9d81f4bdd3f8f8ddac1ea3e.tar.xz gnupg2-61c2a1fa6d6cb345f9d81f4bdd3f8f8ddac1ea3e.zip |
Call log_set_prefix() with human-readable labels.
* agent/preset-passphrase.c, agent/protect-tool.c, dirmngr/dirmngr.c
* dirmngr/t-http.c, g10/gpg.c, g10/gpgv.c, g13/g13-syshelp.c
* g13/g13.c, kbx/kbxutil.c, scd/scdaemon.c, sm/gpgsm.c
* tests/gpgscm/main.c, tools/gpg-check-pattern.c
* tools/gpg-connect-agent.c, tools/gpgconf.c, tools/gpgtar.c
* tools/symcryptrun.c: Invoke log_set_prefix() with
human-readable labels.
--
Some invocations of log_set_prefix() were done with raw numeric values
instead of values that humans can understand. Use symbolic
representations instead of numeric for better readability.
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'sm')
-rw-r--r-- | sm/gpgsm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sm/gpgsm.c b/sm/gpgsm.c index 42b6706de..e3b1e888d 100644 --- a/sm/gpgsm.c +++ b/sm/gpgsm.c @@ -930,7 +930,7 @@ main ( int argc, char **argv) /* Please note that we may running SUID(ROOT), so be very CAREFUL when adding any stuff between here and the call to secmem_init() somewhere after the option parsing */ - log_set_prefix (GPGSM_NAME, 1); + log_set_prefix (GPGSM_NAME, GPGRT_LOG_WITH_PREFIX); /* Make sure that our subsystems are ready. */ i18n_init (); @@ -1507,7 +1507,7 @@ main ( int argc, char **argv) if (logfile && cmd == aServer) { log_set_file (logfile); - log_set_prefix (NULL, 1|2|4); + log_set_prefix (NULL, GPGRT_LOG_WITH_PREFIX | GPGRT_LOG_WITH_TIME | GPGRT_LOG_WITH_PID); } if (gnupg_faked_time_p ()) |