From a33133c3def3d95e15aba80b175d4d413c127c1c Mon Sep 17 00:00:00 2001 From: wangyu Date: Fri, 18 Aug 2017 00:50:56 +0800 Subject: [PATCH] trival --- common.cpp | 2 +- main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common.cpp b/common.cpp index 7920041..e86f3bb 100644 --- a/common.cpp +++ b/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 diff --git a/main.cpp b/main.cpp index e8c1cb9..4e6336c 100755 --- a/main.cpp +++ b/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;