Kaynağa Gözat

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

return a static buffer.
tags/v0.9.3
Michael Brown 18 yıl önce
ebeveyn
işleme
a5a330339b
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3
    3
      src/interface/pxe/pxe_udp.c

+ 3
- 3
src/interface/pxe/pxe_udp.c Dosyayı Görüntüle

@@ -407,10 +407,10 @@ PXENV_EXIT_t pxenv_udp_read ( struct s_PXENV_UDP_READ *pxenv_udp_read ) {
407 407
 	if ( d_port && ( d_port != pxenv_udp_read->d_port ) )
408 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 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 414
 	      inet_ntoa ( *( ( struct in_addr * ) &pxenv_udp_read->dest_ip ) ),
415 415
 	      ntohs ( pxenv_udp_read->d_port ) );
416 416
 

Loading…
İptal
Kaydet