diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-05-16 14:26:35 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-05-16 14:26:35 -0400 |
commit | 0bec9f320b81a85ba3596e9780b1cf7c770dfb31 (patch) | |
tree | 2323efba21ab2671212ab05361869f2ad1f9411a /src/or/dirserv.c | |
parent | 75fc4dbbcabaedc715f0f9e883ccab1c9634e787 (diff) | |
download | tor-0bec9f320b81a85ba3596e9780b1cf7c770dfb31.tar.gz tor-0bec9f320b81a85ba3596e9780b1cf7c770dfb31.zip |
Use %f, not %lf when formatting doubles
%f is correct; %lf is only needed with scanf. Apparently, on some
old BSDs, %lf is deprecated.
Didn't we do this before? Yes, we did. But we only got the
instances of %lf, not more complicated things like %.5lf . This
patch tries to get everything.
Based on a patch for 3894 by grarpamp.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index 0308d4dbc1..a98b20b1e1 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1939,7 +1939,7 @@ dirserv_compute_performance_thresholds(routerlist_t *rl) log(LOG_INFO, LD_DIRSERV, "Cutoffs: For Stable, %lu sec uptime, %lu sec MTBF. " "For Fast: %lu bytes/sec. " - "For Guard: WFU %.03lf%%, time-known %lu sec, " + "For Guard: WFU %.03f%%, time-known %lu sec, " "and bandwidth %lu or %lu bytes/sec. We%s have enough stability data.", (unsigned long)stable_uptime, (unsigned long)stable_mtbf, |