ptp: Fix debug output to print the difference instead of absolute values
authorSebastian Dröge <sebastian@centricular.com>
Wed, 3 Jun 2015 14:08:43 +0000 (16:08 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 3 Jun 2015 14:09:17 +0000 (16:09 +0200)
libs/gst/net/gstptpclock.c

index 59f516b..bdc7b98 100644 (file)
@@ -1329,7 +1329,8 @@ update_mean_path_delay (PtpDomainData * domain, PtpPendingSync * sync)
       sync->sync_recv_time_local + 2 * domain->mean_path_delay) {
     GST_WARNING ("Sync-follow-up delay for domain %u too big: %" GST_TIME_FORMAT
         " > 2 * %" GST_TIME_FORMAT, domain->domain,
-        GST_TIME_ARGS (sync->follow_up_recv_time_local),
+        GST_TIME_ARGS (sync->follow_up_recv_time_local -
+            sync->sync_recv_time_local),
         GST_TIME_ARGS (domain->mean_path_delay));
     ret = FALSE;
     goto out;