From a2a939f6f6caae9c06dac6e85e4eca54df460927 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Mon, 20 Jun 2016 13:41:32 -0700 Subject: [PATCH] debug file update --- src/SDK_Debug.c | 2 +- src/SDK_Sockets.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;