master/sync.c
changeset 1989 6aa393418fb3
parent 1921 d9cf40facbc4
child 2123 4c335a1d4db0
child 2149 98e1e773bed0
--- a/master/sync.c	Fri May 07 15:26:26 2010 +0200
+++ b/master/sync.c	Tue May 11 13:57:58 2010 +0200
@@ -129,10 +129,10 @@
         }
     }
 
-    if (sync->slave->master->debug_level)
-        EC_DBG("SM%u: Addr 0x%04X, Size %3u, Ctrl 0x%02X, En %u\n",
-               sync_index, sync->physical_start_address,
-               data_size, control, enable);
+    EC_SLAVE_DBG(sync->slave, 1, "SM%u: Addr 0x%04X, Size %3u,"
+            " Ctrl 0x%02X, En %u\n",
+            sync_index, sync->physical_start_address,
+            data_size, control, enable);
 
     EC_WRITE_U16(data,     sync->physical_start_address);
     EC_WRITE_U16(data + 2, data_size);