From b0c36c0eaa785aced0e748321b811785ce0816af Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Sat, 1 Jun 2019 13:48:06 +0100 Subject: [PATCH] Remove unused LOG_ERROR, always log errors --- lib/client_impl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/client_impl.c b/lib/client_impl.c index f88cfe3..2a47903 100644 --- a/lib/client_impl.c +++ b/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; }