[chrony-dev] [PATCH] Reorder arguments to DEBUG_LOG in SST_IsGoodSample

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


The delay_increase and allowed_increase variables are backwards with respect to
the ordering of the words in the message.
---
 sourcestats.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sourcestats.c b/sourcestats.c
index c05b4bc..bf6ef22 100644
--- a/sourcestats.c
+++ b/sourcestats.c
@@ -806,7 +806,7 @@ SST_IsGoodSample(SST_Stats inst, double offset, double delay,
     return 1;
 
   DEBUG_LOG(LOGF_SourceStats, "Bad sample: offset=%f delay=%f incr_delay=%f allowed=%f",
-      offset, delay, allowed_increase, delay_increase);
+            offset, delay, delay_increase, allowed_increase);
 
   return 0;
 }
-- 
2.9.3


-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/