Browse Source

Split DBG() statement containing two inet_ntoa() statements; they

return a static buffer.
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
a5a330339b
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/interface/pxe/pxe_udp.c

+ 3
- 3
src/interface/pxe/pxe_udp.c View File

407
 	if ( d_port && ( d_port != pxenv_udp_read->d_port ) )
407
 	if ( d_port && ( d_port != pxenv_udp_read->d_port ) )
408
 		goto no_packet;
408
 		goto no_packet;
409
 
409
 
410
-	DBG ( " %04x:%04x+%x %s:%d<-%s:%d", pxenv_udp_read->buffer.segment,
410
+	DBG ( " %04x:%04x+%x %s:", pxenv_udp_read->buffer.segment,
411
 	      pxenv_udp_read->buffer.offset, pxenv_udp_read->buffer_size,
411
 	      pxenv_udp_read->buffer.offset, pxenv_udp_read->buffer_size,
412
-	      inet_ntoa ( *( ( struct in_addr * ) &pxenv_udp_read->src_ip ) ),
413
-	      ntohs ( pxenv_udp_read->s_port ),
412
+	      inet_ntoa ( *( ( struct in_addr * ) &pxenv_udp_read->src_ip ) ));
413
+	DBG ( "%d<-%s:%d",  ntohs ( pxenv_udp_read->s_port ),
414
 	      inet_ntoa ( *( ( struct in_addr * ) &pxenv_udp_read->dest_ip ) ),
414
 	      inet_ntoa ( *( ( struct in_addr * ) &pxenv_udp_read->dest_ip ) ),
415
 	      ntohs ( pxenv_udp_read->d_port ) );
415
 	      ntohs ( pxenv_udp_read->d_port ) );
416
 
416
 

Loading…
Cancel
Save