wangyu 8 år sedan
förälder
incheckning
a33133c3de
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      common.cpp
  2. 1 1
      main.cpp

+ 1 - 1
common.cpp

@@ -359,7 +359,7 @@ int read_file(const char * file,char * &output)
 	else if(len<0)
 	{
 		buf[0]=0;
-        mylog(log_error,"read fail %d\n");
+        mylog(log_error,"read fail %d\n",len);
         return -3;
 	}
 	else

+ 1 - 1
main.cpp

@@ -993,7 +993,7 @@ int client_on_timer(conn_info_t &conn_info) //for client
 		{
 			if(new_ip!=source_ip_uint32)
 			{
-				mylog(log_info,"source ip changed from %s to",my_ntoa(source_ip_uint32));
+				mylog(log_info,"source ip changed from %s to ",my_ntoa(source_ip_uint32));
 				log_bare(log_info,"%s\n",my_ntoa(new_ip));
 				source_ip_uint32=new_ip;
 				send_info.src_ip=new_ip;