Browse Source

[virtio] Downgrade per-iobuf debug messages to DBGC2

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Laszlo Ersek 9 years ago
parent
commit
b12b1b620f
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      src/drivers/net/virtio-net.c

+ 6
- 6
src/drivers/net/virtio-net.c View File

131
 		},
131
 		},
132
 	};
132
 	};
133
 
133
 
134
-	DBGC ( virtnet, "VIRTIO-NET %p enqueuing iobuf %p on vq %d\n",
135
-	       virtnet, iobuf, vq_idx );
134
+	DBGC2 ( virtnet, "VIRTIO-NET %p enqueuing iobuf %p on vq %d\n",
135
+		virtnet, iobuf, vq_idx );
136
 
136
 
137
 	vring_add_buf ( vq, list, out, in, iobuf, 0 );
137
 	vring_add_buf ( vq, list, out, in, iobuf, 0 );
138
 	vring_kick ( virtnet->ioaddr, vq, 1 );
138
 	vring_kick ( virtnet->ioaddr, vq, 1 );
256
 	while ( vring_more_used ( tx_vq ) ) {
256
 	while ( vring_more_used ( tx_vq ) ) {
257
 		struct io_buffer *iobuf = vring_get_buf ( tx_vq, NULL );
257
 		struct io_buffer *iobuf = vring_get_buf ( tx_vq, NULL );
258
 
258
 
259
-		DBGC ( virtnet, "VIRTIO-NET %p tx complete iobuf %p\n",
260
-		       virtnet, iobuf );
259
+		DBGC2 ( virtnet, "VIRTIO-NET %p tx complete iobuf %p\n",
260
+			virtnet, iobuf );
261
 
261
 
262
 		netdev_tx_complete ( netdev, iobuf );
262
 		netdev_tx_complete ( netdev, iobuf );
263
 	}
263
 	}
283
 		iob_unput ( iobuf, RX_BUF_SIZE );
283
 		iob_unput ( iobuf, RX_BUF_SIZE );
284
 		iob_put ( iobuf, len - sizeof ( struct virtio_net_hdr ) );
284
 		iob_put ( iobuf, len - sizeof ( struct virtio_net_hdr ) );
285
 
285
 
286
-		DBGC ( virtnet, "VIRTIO-NET %p rx complete iobuf %p len %zd\n",
287
-		       virtnet, iobuf, iob_len ( iobuf ) );
286
+		DBGC2 ( virtnet, "VIRTIO-NET %p rx complete iobuf %p len %zd\n",
287
+			virtnet, iobuf, iob_len ( iobuf ) );
288
 
288
 
289
 		/* Pass completed packet to the network stack */
289
 		/* Pass completed packet to the network stack */
290
 		netdev_rx ( netdev, iobuf );
290
 		netdev_rx ( netdev, iobuf );

Loading…
Cancel
Save