Minor change.
authorFlorian Pose <fp@igh-essen.com>
Thu, 06 May 2010 11:41:25 +0200
changeset 1924 2917b262554b
parent 1923 712d04506f12
child 1925 29161abef052
Minor change.
master/fsm_slave_scan.c
master/slave.c
--- a/master/fsm_slave_scan.c	Thu May 06 11:39:29 2010 +0200
+++ b/master/fsm_slave_scan.c	Thu May 06 11:41:25 2010 +0200
@@ -682,9 +682,8 @@
                     goto end;
                 break;
             default:
-                if (fsm->slave->master->debug_level)
-                    EC_SLAVE_WARN(slave, "Unknown category type 0x%04X.\n",
-                            cat_type);
+                EC_SLAVE_DBG(slave, 1, "Unknown category type 0x%04X.\n",
+                        cat_type);
         }
 
         cat_word += cat_size;
--- a/master/slave.c	Thu May 06 11:39:29 2010 +0200
+++ b/master/slave.c	Thu May 06 11:41:25 2010 +0200
@@ -581,8 +581,7 @@
         return NULL;
 
     if (index >= slave->sii.string_count) {
-        if (slave->master->debug_level)
-            EC_SLAVE_WARN(slave, "String %u not found.\n", index);
+        EC_SLAVE_DBG(slave, 1, "String %u not found.\n", index);
         return NULL;
     }