From 4df1143f2bfefa1e586084d866a3468e6fb093de Mon Sep 17 00:00:00 2001 From: david Date: Fri, 7 Nov 2008 01:47:33 +0000 Subject: [PATCH] Fix a diagnostic format string. It was printing a signed long as if it were unsigned. I got adjust_timeouts2: packet supposedly had rtt of 18446744073707362535 microseconds. Ignoring time. on a 64-bit machine. (18446744073707362535 is 2 ** 64 - 2189081.) --- timing.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timing.cc b/timing.cc index f4fba6393..7a35d6273 100644 --- a/timing.cc +++ b/timing.cc @@ -160,7 +160,7 @@ void adjust_timeouts2(const struct timeval *sent, else { if (delta >= 8000000 || delta < 0) { if (o.verbose) - error("%s: packet supposedly had rtt of %lu microseconds. Ignoring time.", __func__, delta); + error("%s: packet supposedly had rtt of %ld microseconds. Ignoring time.", __func__, delta); return; } delta -= to->srtt;