aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2013-01-08 13:35:27 +0000
committerWerner Koch <[email protected]>2013-01-08 13:35:27 +0000
commit5c565512b8af73bee2a176530663154b9277ef1c (patch)
tree6785089957bc067d052e82d907e800c83c07b019
parentgpg: Remove a function wrapper. (diff)
downloadgnupg-5c565512b8af73bee2a176530663154b9277ef1c.tar.gz
gnupg-5c565512b8af73bee2a176530663154b9277ef1c.zip
Make log_clock easier to read.
* common/logging.c (log_clock): Print in microseconds.
-rw-r--r--common/logging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/logging.c b/common/logging.c
index a8acb5299..cdfd6597c 100644
--- a/common/logging.c
+++ b/common/logging.c
@@ -876,7 +876,7 @@ log_clock (const char *string)
if (!initial)
initial = now;
- log_debug ("[%llu] %s", now - initial, string);
+ log_debug ("[%6llu] %s", (now - initial)/1000, string);
#else
/* You need to link with -ltr to enable the above code. */
log_debug ("[not enabled in the source] %s", string);