summaryrefslogtreecommitdiffstats
path: root/net/rarp.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-23 08:01:04 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-23 17:53:08 -0500
commit4ef8d53caadbab5585ccb4df2d087183b1383b86 (patch)
tree5e4aeca8a2c86a983f08d573405594c68691db7e /net/rarp.c
parentc697576262be11ddab48e1890428495e2fef1751 (diff)
downloadtalos-obmc-uboot-4ef8d53caadbab5585ccb4df2d087183b1383b86.tar.gz
talos-obmc-uboot-4ef8d53caadbab5585ccb4df2d087183b1383b86.zip
net: Allow filtering on debug traces in the net subsystem
Add several levels of DEBUG prints so that you can limit the noise to the severety of your problem. DEBUG_LL_STATE = Link local state machine changes DEBUG_DEV_PKT = Packets or info directed to the device DEBUG_NET_PKT = Packets on info on the network at large DEBUG_INT_STATE = Internal network state changes Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net/rarp.c')
-rw-r--r--net/rarp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rarp.c b/net/rarp.c
index a715c2c7fd..49185b4e14 100644
--- a/net/rarp.c
+++ b/net/rarp.c
@@ -45,7 +45,7 @@ void rarp_receive(struct ip_udp_hdr *ip, unsigned len)
{
struct arp_hdr *arp;
- debug("Got RARP\n");
+ debug_cond(DEBUG_NET_PKT, "Got RARP\n");
arp = (struct arp_hdr *)ip;
if (len < ARP_HDR_SIZE) {
printf("bad length %d < %d\n", len, ARP_HDR_SIZE);
@@ -63,7 +63,7 @@ void rarp_receive(struct ip_udp_hdr *ip, unsigned len)
if (NetServerIP == 0)
NetCopyIP(&NetServerIP, &arp->ar_data[6]);
memcpy(NetServerEther, &arp->ar_data[0], 6);
- debug("Got good RARP\n");
+ debug_cond(DEBUG_DEV_PKT, "Got good RARP\n");
net_auto_load();
}
}
OpenPOWER on IntegriCloud