From 61c2a1fa6d6cb345f9d81f4bdd3f8f8ddac1ea3e Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Fri, 12 Aug 2016 01:37:57 -0400 Subject: 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 --- g13/g13-syshelp.c | 4 ++-- g13/g13.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'g13') diff --git a/g13/g13-syshelp.c b/g13/g13-syshelp.c index 0bb34dacb..7976be43d 100644 --- a/g13/g13-syshelp.c +++ b/g13/g13-syshelp.c @@ -244,7 +244,7 @@ main ( int argc, char **argv) set_strusage (my_strusage); gcry_control (GCRYCTL_SUSPEND_SECMEM_WARN); - log_set_prefix (G13_NAME "-syshelp", 1); + log_set_prefix (G13_NAME "-syshelp", GPGRT_LOG_WITH_PREFIX); /* Make sure that our subsystems are ready. */ i18n_init (); @@ -437,7 +437,7 @@ main ( int argc, char **argv) if (logfile) { 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 ()) diff --git a/g13/g13.c b/g13/g13.c index 082edc9a4..7c6e2e367 100644 --- a/g13/g13.c +++ b/g13/g13.c @@ -364,7 +364,7 @@ main ( int argc, char **argv) set_strusage (my_strusage); gcry_control (GCRYCTL_SUSPEND_SECMEM_WARN); - log_set_prefix (G13_NAME, 1); + log_set_prefix (G13_NAME, GPGRT_LOG_WITH_PREFIX); /* Make sure that our subsystems are ready. */ i18n_init (); @@ -655,7 +655,7 @@ main ( int argc, char **argv) if (logfile) { 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 ()) -- cgit v1.2.3