From b6f690b88644fd0a229f523b20259f61d0335154 Mon Sep 17 00:00:00 2001
From: Florian Pose <fp@igh-essen.com>
Date: Fri, 25 Apr 2008 12:18:46 +0000
Subject: [PATCH] Removed some debugging.

---
 TODO                | 1 -
 master/fsm_master.c | 4 +---
 master/slave.c      | 6 ------
 3 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/TODO b/TODO
index 3d310374..aa7b0f3b 100644
--- a/TODO
+++ b/TODO
@@ -35,7 +35,6 @@ Version 1.4.0:
 * Rename the sdodict state to sdo_dictionary.
 * Check the position of the acknowledge state.
 * Remove the xmldev files.
-* Remove some debugging (add_sync_manager, clearing station addresses).
 * Separate CoE debugging.
 * Make ecrt_master_slave_config() return no error when slave is not present
   or invalid.
diff --git a/master/fsm_master.c b/master/fsm_master.c
index 17e466df..4fa8db9b 100644
--- a/master/fsm_master.c
+++ b/master/fsm_master.c
@@ -271,9 +271,7 @@ void ec_fsm_master_state_broadcast(ec_fsm_master_t *fsm /**< master state machin
                 list_add_tail(&slave->list, &master->slaves);
             }
 
-            if (master->debug_level)
-                EC_DBG("Clearing station addresses...\n");
-
+            // broadcast clear all station addresses
             ec_datagram_bwr(datagram, 0x0010, 2);
             EC_WRITE_U16(datagram->data, 0x0000);
             fsm->retries = EC_FSM_RETRIES;
diff --git a/master/slave.c b/master/slave.c
index 5ef756e5..072a3351 100644
--- a/master/slave.c
+++ b/master/slave.c
@@ -503,9 +503,6 @@ int ec_slave_fetch_sii_syncs(
 
     count = data_size / 8;
 
-    if (slave->master->debug_level)
-        EC_DBG("Found Sync manager category with %u sync managers.\n", count);
-    
     if (count) {
         total_count = count + slave->sii.sync_count;
         memsize = sizeof(ec_sync_t) * total_count;
@@ -536,9 +533,6 @@ int ec_slave_fetch_sii_syncs(
         slave->sii.sync_count = total_count;
     }
 
-    if (slave->master->debug_level)
-        EC_DBG("Total sync managers: %u.\n", slave->sii.sync_count);
-
     return 0;
 }
 
-- 
GitLab