summaryrefslogtreecommitdiffstats
path: root/src/interface
diff options
context:
space:
mode:
authorMichael Brown2007-01-14 20:58:41 +0100
committerMichael Brown2007-01-14 20:58:41 +0100
commita5a330339bbfcb387eee69b5f9c9edb02f049c49 (patch)
tree27689375e853677c6ab221acbfc675b0f00c52a7 /src/interface
parentDump buffer and packet information in PXENV_UDP_READ as well (diff)
downloadipxe-a5a330339bbfcb387eee69b5f9c9edb02f049c49.tar.gz
ipxe-a5a330339bbfcb387eee69b5f9c9edb02f049c49.tar.xz
ipxe-a5a330339bbfcb387eee69b5f9c9edb02f049c49.zip
Split DBG() statement containing two inet_ntoa() statements; they
return a static buffer.
Diffstat (limited to 'src/interface')
-rw-r--r--src/interface/pxe/pxe_udp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interface/pxe/pxe_udp.c b/src/interface/pxe/pxe_udp.c
index c77e8b22..ba007ebe 100644
--- a/src/interface/pxe/pxe_udp.c
+++ b/src/interface/pxe/pxe_udp.c
@@ -407,10 +407,10 @@ PXENV_EXIT_t pxenv_udp_read ( struct s_PXENV_UDP_READ *pxenv_udp_read ) {
if ( d_port && ( d_port != pxenv_udp_read->d_port ) )
goto no_packet;
- DBG ( " %04x:%04x+%x %s:%d<-%s:%d", pxenv_udp_read->buffer.segment,
+ DBG ( " %04x:%04x+%x %s:", pxenv_udp_read->buffer.segment,
pxenv_udp_read->buffer.offset, pxenv_udp_read->buffer_size,
- inet_ntoa ( *( ( struct in_addr * ) &pxenv_udp_read->src_ip ) ),
- ntohs ( pxenv_udp_read->s_port ),
+ inet_ntoa ( *( ( struct in_addr * ) &pxenv_udp_read->src_ip ) ));
+ DBG ( "%d<-%s:%d", ntohs ( pxenv_udp_read->s_port ),
inet_ntoa ( *( ( struct in_addr * ) &pxenv_udp_read->dest_ip ) ),
ntohs ( pxenv_udp_read->d_port ) );