master/ethernet.c
changeset 1488 3fb343e3fac0
parent 1487 1c67e19f24b8
child 1489 f77a1182b6f4
--- a/master/ethernet.c	Mon Jun 29 14:25:31 2009 +0000
+++ b/master/ethernet.c	Mon Jun 29 14:27:06 2009 +0000
@@ -702,7 +702,9 @@
     eoe->opened = 1;
     netif_start_queue(dev);
     eoe->tx_queue_active = 1;
+#if EOE_DEBUG_LEVEL >= 2
     EC_DBG("%s opened.\n", dev->name);
+#endif
     ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_OP);
     return 0;
 }
@@ -718,7 +720,9 @@
     eoe->tx_queue_active = 0;
     eoe->opened = 0;
     ec_eoe_flush(eoe);
+#if EOE_DEBUG_LEVEL >= 2
     EC_DBG("%s stopped.\n", dev->name);
+#endif
     ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_PREOP);
     return 0;
 }