Browse Source

[netdevice] Move high-frequency debug messages to DBGLVL_EXTRA

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 years ago
parent
commit
9e3604168a
1 changed files with 9 additions and 9 deletions
  1. 9
    9
      src/net/netdevice.c

+ 9
- 9
src/net/netdevice.c View File

@@ -163,8 +163,8 @@ static void netdev_record_stat ( struct net_device_stats *stats, int rc ) {
163 163
 int netdev_tx ( struct net_device *netdev, struct io_buffer *iobuf ) {
164 164
 	int rc;
165 165
 
166
-	DBGC ( netdev, "NETDEV %s transmitting %p (%p+%zx)\n",
167
-	       netdev->name, iobuf, iobuf->data, iob_len ( iobuf ) );
166
+	DBGC2 ( netdev, "NETDEV %s transmitting %p (%p+%zx)\n",
167
+		netdev->name, iobuf, iobuf->data, iob_len ( iobuf ) );
168 168
 
169 169
 	/* Enqueue packet */
170 170
 	list_add_tail ( &iobuf->list, &netdev->tx_queue );
@@ -208,8 +208,8 @@ void netdev_tx_complete_err ( struct net_device *netdev,
208 208
 	/* Update statistics counter */
209 209
 	netdev_record_stat ( &netdev->tx_stats, rc );
210 210
 	if ( rc == 0 ) {
211
-		DBGC ( netdev, "NETDEV %s transmission %p complete\n",
212
-		       netdev->name, iobuf );
211
+		DBGC2 ( netdev, "NETDEV %s transmission %p complete\n",
212
+			netdev->name, iobuf );
213 213
 	} else {
214 214
 		DBGC ( netdev, "NETDEV %s transmission %p failed: %s\n",
215 215
 		       netdev->name, iobuf, strerror ( rc ) );
@@ -265,8 +265,8 @@ static void netdev_tx_flush ( struct net_device *netdev ) {
265 265
  */
266 266
 void netdev_rx ( struct net_device *netdev, struct io_buffer *iobuf ) {
267 267
 
268
-	DBGC ( netdev, "NETDEV %s received %p (%p+%zx)\n",
269
-	       netdev->name, iobuf, iobuf->data, iob_len ( iobuf ) );
268
+	DBGC2 ( netdev, "NETDEV %s received %p (%p+%zx)\n",
269
+		netdev->name, iobuf, iobuf->data, iob_len ( iobuf ) );
270 270
 
271 271
 	/* Discard packet (for test purposes) if applicable */
272 272
 	if ( ( NETDEV_DISCARD_RATE > 0 ) &&
@@ -718,9 +718,9 @@ void net_poll ( void ) {
718 718
 		 */
719 719
 		if ( ( iobuf = netdev_rx_dequeue ( netdev ) ) ) {
720 720
 
721
-			DBGC ( netdev, "NETDEV %s processing %p (%p+%zx)\n",
722
-			       netdev->name, iobuf, iobuf->data,
723
-			       iob_len ( iobuf ) );
721
+			DBGC2 ( netdev, "NETDEV %s processing %p (%p+%zx)\n",
722
+				netdev->name, iobuf, iobuf->data,
723
+				iob_len ( iobuf ) );
724 724
 
725 725
 			/* Remove link-layer header */
726 726
 			ll_protocol = netdev->ll_protocol;

Loading…
Cancel
Save