Minor DC debugging. stable-1.5
authorFlorian Pose <fp@igh-essen.com>
Wed, 05 Dec 2012 14:55:32 +0100
branchstable-1.5
changeset 2475 9c18c29b8942
parent 2474 fb2fe8fae501
child 2476 9a0d30056e70
Minor DC debugging.
master/fsm_master.c
--- a/master/fsm_master.c	Wed Dec 05 13:30:08 2012 +0100
+++ b/master/fsm_master.c	Wed Dec 05 14:55:32 2012 +0100
@@ -917,8 +917,6 @@
 {
     ec_master_t *master = fsm->master;
 
-    EC_MASTER_DBG(master, 1, "Writing system time offsets...\n");
-
     if (master->has_app_time) {
 
         while (fsm->slave < master->slaves + master->slave_count) {
@@ -928,6 +926,8 @@
                 continue;
             }
 
+            EC_SLAVE_DBG(fsm->slave, 1, "Checking system time offset.\n");
+
             // read DC system time (0x0910, 64 bit)
             //                         gap (64 bit)
             //     and time offset (0x0920, 64 bit)
@@ -976,7 +976,7 @@
     system_time32 += correction;
     time_diff = (u32) slave->master->app_time - system_time32;
 
-    EC_SLAVE_DBG(slave, 1, "DC system time offset calculation:"
+    EC_SLAVE_DBG(slave, 1, "DC 32 bit system time offset calculation:"
             " system_time=%u (corrected with %u),"
             " app_time=%llu, diff=%i\n",
             system_time32, correction,
@@ -1013,7 +1013,7 @@
     system_time += correction;
     time_diff = fsm->slave->master->app_time - system_time;
 
-    EC_SLAVE_DBG(slave, 1, "DC system time offset calculation:"
+    EC_SLAVE_DBG(slave, 1, "DC 64 bit system time offset calculation:"
             " system_time=%llu (corrected with %llu),"
             " app_time=%llu, diff=%lli\n",
             system_time, correction,