From e9b881e6db24fcde1d58bb4b023d16b0c679cc2f Mon Sep 17 00:00:00 2001 From: Florian Pose Date: Mon, 29 Jun 2009 14:27:06 +0000 Subject: [PATCH] Output device opened/closed only on debug level 2. --- master/ethernet.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/master/ethernet.c b/master/ethernet.c index 69ad7b95..6f9c4bd1 100644 --- a/master/ethernet.c +++ b/master/ethernet.c @@ -702,7 +702,9 @@ int ec_eoedev_open(struct net_device *dev /**< EoE net_device */) 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 @@ int ec_eoedev_stop(struct net_device *dev /**< EoE net_device */) 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; }