mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 15:47:20 +02:00
Remove unused LOG_ERROR, always log errors
This commit is contained in:
parent
2a124ce8c7
commit
b0c36c0eaa
@ -57,10 +57,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
#define DEBUG(...)
|
#define DEBUG(...)
|
||||||
#define LOG_ERROR
|
|
||||||
#else
|
#else
|
||||||
#define DEBUG(...) fprintf(stderr, __VA_ARGS__)
|
#define DEBUG(...) fprintf(stderr, __VA_ARGS__)
|
||||||
#define LOG_ERROR fprintf(stderr, "ERROR: %s \n", error_string)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DO_TRACE
|
#if DO_TRACE
|
||||||
@ -100,7 +98,7 @@ static int log_error(const char *fmt, ...)
|
|||||||
else if ((size_t)n >= sizeof(error_string))
|
else if ((size_t)n >= sizeof(error_string))
|
||||||
DEBUG("Error log overflow");
|
DEBUG("Error log overflow");
|
||||||
|
|
||||||
TRACE("ERROR: %s \n", error_string);
|
fprintf(stderr, "GameMode ERROR: %s\n", error_string);
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user