diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-08-06 15:52:31 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-08-06 15:52:31 +0100 |
commit | e972057381753a744e82e6b23d19082f9f7e46b6 (patch) | |
tree | 816f902f11d70ca1cf27a9f0af1e21841b2b9a1b /src | |
parent | b76885165e64a836ac1e2ea987bdb1b724b7b2b3 (diff) | |
download | ipxe-e972057381753a744e82e6b23d19082f9f7e46b6.zip ipxe-e972057381753a744e82e6b23d19082f9f7e46b6.tar.gz ipxe-e972057381753a744e82e6b23d19082f9f7e46b6.tar.bz2 |
[udp] Move high-frequency debug messages to DBGLVL_EXTRA
This makes it possible to leave UDP debugging enabled in order to see
interesting UDP events, without flooding the console with at least one
message per packet.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/net/udp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/udp.c b/src/net/udp.c index 20badb7..bae5f4a 100644 --- a/src/net/udp.c +++ b/src/net/udp.c @@ -220,9 +220,9 @@ static int udp_tx ( struct udp_connection *udp, struct io_buffer *iobuf, udphdr->chksum = tcpip_chksum ( udphdr, len ); /* Dump debugging information */ - DBGC ( udp, "UDP %p TX %d->%d len %d\n", udp, - ntohs ( udphdr->src ), ntohs ( udphdr->dest ), - ntohs ( udphdr->len ) ); + DBGC2 ( udp, "UDP %p TX %d->%d len %d\n", udp, + ntohs ( udphdr->src ), ntohs ( udphdr->dest ), + ntohs ( udphdr->len ) ); /* Send it to the next layer for processing */ if ( ( rc = tcpip_tx ( iobuf, &udp_protocol, src, dest, netdev, @@ -317,8 +317,8 @@ static int udp_rx ( struct io_buffer *iobuf, struct sockaddr_tcpip *st_src, iob_pull ( iobuf, sizeof ( *udphdr ) ); /* Dump debugging information */ - DBGC ( udp, "UDP %p RX %d<-%d len %zd\n", udp, - ntohs ( udphdr->dest ), ntohs ( udphdr->src ), ulen ); + DBGC2 ( udp, "UDP %p RX %d<-%d len %zd\n", udp, + ntohs ( udphdr->dest ), ntohs ( udphdr->src ), ulen ); /* Ignore if no matching connection found */ if ( ! udp ) { |