浏览代码

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

return a static buffer.
tags/v0.9.3
Michael Brown 18 年前
父节点
当前提交
a5a330339b
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      src/interface/pxe/pxe_udp.c

+ 3
- 3
src/interface/pxe/pxe_udp.c 查看文件

@@ -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
 

正在加载...
取消
保存