소스 검색

Remove unused LOG_ERROR, always log errors

Alex Smith 5 년 전
부모
커밋
b0c36c0eaa
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      lib/client_impl.c

+ 1 - 3
lib/client_impl.c

@@ -57,10 +57,8 @@ POSSIBILITY OF SUCH DAMAGE.
 
 #ifdef NDEBUG
 #define DEBUG(...)
-#define LOG_ERROR
 #else
 #define DEBUG(...) fprintf(stderr, __VA_ARGS__)
-#define LOG_ERROR fprintf(stderr, "ERROR: %s \n", error_string)
 #endif
 
 #if DO_TRACE
@@ -100,7 +98,7 @@ static int log_error(const char *fmt, ...)
 	else if ((size_t)n >= sizeof(error_string))
 		DEBUG("Error log overflow");
 
-	TRACE("ERROR: %s \n", error_string);
+	fprintf(stderr, "GameMode ERROR: %s\n", error_string);
 
 	return -1;
 }