Added some debugging.
authorFlorian Pose <fp@igh-essen.com>
Mon, 23 Jun 2008 10:26:47 +0000
changeset 1050 c6afe1cbfaf7
parent 1049 91a0d7226e0b
child 1051 40a4f31ec3b8
Added some debugging.
master/fsm_pdo_assign.c
--- a/master/fsm_pdo_assign.c	Mon Jun 23 09:52:23 2008 +0000
+++ b/master/fsm_pdo_assign.c	Mon Jun 23 10:26:47 2008 +0000
@@ -178,6 +178,15 @@
             continue;
         }
 
+        if (fsm->slave->master->debug_level) {
+            EC_DBG("Sync Pdos: ");
+            ec_pdo_list_print(&fsm->sync->pdos);
+            printk("\n");
+            EC_DBG("Config Pdos: ");
+            ec_pdo_list_print(fsm->pdos);
+            printk("\n");
+        }
+
         // check if assignment has to be altered
         if (ec_pdo_list_equal(&fsm->sync->pdos, fsm->pdos))
             continue;