Added enable bit to sync manager debugging.
authorFlorian Pose <fp@igh-essen.com>
Wed, 18 Oct 2006 12:34:00 +0000
changeset 414 60cd2fcc71ee
parent 413 a7144fdf14f5
child 415 0918aa9bfd0b
Added enable bit to sync manager debugging.
master/master.c
--- a/master/master.c	Wed Oct 18 12:04:24 2006 +0000
+++ b/master/master.c	Wed Oct 18 12:34:00 2006 +0000
@@ -680,9 +680,9 @@
     sync_size = ec_slave_calc_sync_size(slave, sync);
 
     if (slave->master->debug_level) {
-        EC_DBG("Slave %3i, SM %i: Addr 0x%04X, Size %3i, Ctrl 0x%02X\n",
+        EC_DBG("Slave %3i, SM %i: Addr 0x%04X, Size %3i, Ctrl 0x%02X, En %i\n",
                slave->ring_position, sync->index, sync->physical_start_address,
-               sync_size, sync->control_register);
+               sync_size, sync->control_register, sync->enable);
     }
 
     EC_WRITE_U16(data,     sync->physical_start_address);