mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
net: Move debug trace to point of action
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -848,10 +848,10 @@ static void DhcpSendRequestPkt(struct Bootp_t *bp_offer)
|
|||||||
pktlen = eth_hdr_size + IP_UDP_HDR_SIZE + iplen;
|
pktlen = eth_hdr_size + IP_UDP_HDR_SIZE + iplen;
|
||||||
net_set_udp_header(iphdr, 0xFFFFFFFFL, PORT_BOOTPS, PORT_BOOTPC, iplen);
|
net_set_udp_header(iphdr, 0xFFFFFFFFL, PORT_BOOTPS, PORT_BOOTPC, iplen);
|
||||||
|
|
||||||
debug("Transmitting DHCPREQUEST packet: len = %d\n", pktlen);
|
|
||||||
#ifdef CONFIG_BOOTP_DHCP_REQUEST_DELAY
|
#ifdef CONFIG_BOOTP_DHCP_REQUEST_DELAY
|
||||||
udelay(CONFIG_BOOTP_DHCP_REQUEST_DELAY);
|
udelay(CONFIG_BOOTP_DHCP_REQUEST_DELAY);
|
||||||
#endif /* CONFIG_BOOTP_DHCP_REQUEST_DELAY */
|
#endif /* CONFIG_BOOTP_DHCP_REQUEST_DELAY */
|
||||||
|
debug("Transmitting DHCPREQUEST packet: len = %d\n", pktlen);
|
||||||
NetSendPacket(NetTxPacket, pktlen);
|
NetSendPacket(NetTxPacket, pktlen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user