From 393e4fb5b5529c666438ef04ebd076f90dd287fa Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 30 Aug 2011 20:42:51 -0400 Subject: Use %f with printf-style formatting, not %lf For printf, %f and %lf are synonymous, since floats are promoted to doubles when passed as varargs. It's only for scanf that we need to say "%lf" for doubles and "%f" for floats. Apparenly, some older compilers think it's naughty to say %lf and like to spew warnings about it. Found by grarpamp. --- src/or/relay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or/relay.c') diff --git a/src/or/relay.c b/src/or/relay.c index 46e852217d..d9b9d0c486 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -2028,7 +2028,7 @@ cell_ewma_set_scale_factor(or_options_t *options, networkstatus_t *consensus) ewma_enabled = 1; log_info(LD_OR, "Enabled cell_ewma algorithm because of value in %s; " - "scale factor is %lf per %d seconds", + "scale factor is %f per %d seconds", source, ewma_scale_factor, EWMA_TICK_LEN); } } -- cgit v1.2.3-54-g00ecf