diff -r ea38efeeb7b3 -r 6aa393418fb3 master/sync.c --- 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);