# HG changeset patch # User Florian Pose # Date 1246285626 0 # Node ID 3fb343e3fac01d45fb981b66e380b004a5c7f046 # Parent 1c67e19f24b804435ab7803f1bc6e42deb55a02e Output device opened/closed only on debug level 2. diff -r 1c67e19f24b8 -r 3fb343e3fac0 master/ethernet.c --- 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; }