diff --git a/src/SDK_Debug.c b/src/SDK_Debug.c index b04163c..945e245 100644 --- a/src/SDK_Debug.c +++ b/src/SDK_Debug.c @@ -77,7 +77,7 @@ void dwr(int level, const char *fmt, ... ) #endif if(DEBUG_TO_FILE) { FILE *file = fopen(DEBUG_LOGFILE_PATH,"a"); - fprintf(file, "%s [tid=%7d] ", timestring, tid); + vfprintf(file, fmt, ap); } fprintf(stderr, "%s [tid=%7d] ", timestring, tid); vfprintf(stderr, fmt, ap); diff --git a/src/SDK_Sockets.c b/src/SDK_Sockets.c index 3a5245c..cbe8ce6 100644 --- a/src/SDK_Sockets.c +++ b/src/SDK_Sockets.c @@ -470,7 +470,7 @@ const char *get_netpath() { int zt_accept(ACCEPT_SIG) { - dwr(MSG_DEBUG,"zt_accept(%d):\n", sockfd); + //dwr(MSG_DEBUG,"zt_accept(%d):\n", sockfd); if(addr) addr->sa_family = AF_INET;