X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fping.c;h=0710b9228d1ea9318901faaf56fdfe4ef68743e3;hb=f395e75e27323cc1ef060f640d0d535ed50e705d;hp=2ba9f76e5a5b032ee7d194c4c941843d84c1b40d;hpb=e94070c443bdc9c0231abeca920d9f9362701aec;p=karo-tx-uboot.git diff --git a/net/ping.c b/net/ping.c index 2ba9f76e5a..0710b9228d 100644 --- a/net/ping.c +++ b/net/ping.c @@ -45,7 +45,7 @@ static int ping_send(void) /* XXX always send arp request */ - debug("sending ARP for %pI4\n", &NetPingIP); + debug_cond(DEBUG_DEV_PKT, "sending ARP for %pI4\n", &NetPingIP); NetArpWaitPacketIP = NetPingIP; @@ -93,7 +93,7 @@ void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len) case ICMP_ECHO_REQUEST: eth_hdr_size = net_update_ether(et, et->et_src, PROT_IP); - debug("Got ICMP ECHO REQUEST, return " + debug_cond(DEBUG_DEV_PKT, "Got ICMP ECHO REQUEST, return " "%d bytes\n", eth_hdr_size + len); ip->ip_sum = 0;