Added debugging for ecrt_slave_config_reg_pdo_entry().
authorFlorian Pose <fp@igh-essen.com>
Tue, 03 Jun 2008 13:13:53 +0000
changeset 941 41a993738383
parent 940 a059c79b5723
child 942 dd13cdafc58c
Added debugging for ecrt_slave_config_reg_pdo_entry().
master/slave_config.c
--- a/master/slave_config.c	Tue Jun 03 12:04:14 2008 +0000
+++ b/master/slave_config.c	Tue Jun 03 13:13:53 2008 +0000
@@ -611,6 +611,12 @@
     ec_pdo_entry_t *entry;
     int sync_offset;
 
+    if (sc->master->debug_level)
+        EC_DBG("ecrt_slave_config_reg_pdo_entry(sc = 0x%x, index = 0x%04X, "
+                "subindex = 0x%02X, domain = 0x%x, bit_position = 0x%x)\n",
+                (unsigned int) sc, index, subindex, (unsigned int) domain,
+                (unsigned int) bit_position);
+
     for (dir = EC_DIR_OUTPUT; dir <= EC_DIR_INPUT; dir++) {
         pdos = &sc->pdos[dir];
         bit_offset = 0;