From 0536aa7413f16998e0df850dc592925aac44f4f7 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Fri, 30 Dec 2011 11:08:54 +0100 Subject: [PATCH] Issue a warning when the path delay turns out negative. Signed-off-by: Richard Cochran --- clock.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/clock.c b/clock.c index 8eb3998..312db9d 100644 --- a/clock.c +++ b/clock.c @@ -356,13 +356,13 @@ void clock_path_delay(struct clock *c, struct timespec req, struct timestamp rx, pd = tmv_div(pd, 2); if (pd < 0) { - pr_debug("negative path delay %10lld", pd); - pr_debug("path_delay = (t2 - t3) + (t4 - t1)"); - pr_debug("t2 - t3 = %+10lld", t2 - t3); - pr_debug("t4 - t1 = %+10lld", t4 - t1); - pr_debug("c1 %10lld", c1); - pr_debug("c2 %10lld", c2); - pr_debug("c3 %10lld", c3); + pr_warning("negative path delay %10lld", pd); + pr_warning("path_delay = (t2 - t3) + (t4 - t1)"); + pr_warning("t2 - t3 = %+10lld", t2 - t3); + pr_warning("t4 - t1 = %+10lld", t4 - t1); + pr_warning("c1 %10lld", c1); + pr_warning("c2 %10lld", c2); + pr_warning("c3 %10lld", c3); return; }