aboutsummaryrefslogtreecommitdiffstats
path: root/alc/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'alc/logging.h')
-rw-r--r--alc/logging.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/alc/logging.h b/alc/logging.h
index 24cfda71..ec6023a5 100644
--- a/alc/logging.h
+++ b/alc/logging.h
@@ -17,9 +17,9 @@ extern FILE *gLogFile;
void al_print(FILE *logfile, const char *fmt, ...) DECL_FORMAT(printf, 2,3);
#if !defined(_WIN32)
-#define AL_PRINT(T, ...) fprintf(gLogFile, "AL lib: " T " " __VA_ARGS__)
+#define AL_PRINT fprintf
#else
-#define AL_PRINT(T, ...) al_print(gLogFile, "AL lib: " T " " __VA_ARGS__)
+#define AL_PRINT al_print
#endif
#ifdef __ANDROID__
@@ -40,19 +40,19 @@ extern LogLevel gLogLevel;
#define TRACE(...) do { \
if UNLIKELY(gLogLevel >= LogTrace) \
- AL_PRINT("(II)", __VA_ARGS__); \
+ AL_PRINT(gLogFile, "AL lib: (II) " __VA_ARGS__); \
LOG_ANDROID(ANDROID_LOG_DEBUG, __VA_ARGS__); \
} while(0)
#define WARN(...) do { \
if UNLIKELY(gLogLevel >= LogWarning) \
- AL_PRINT("(WW)", __VA_ARGS__); \
+ AL_PRINT(gLogFile, "AL lib: (WW) " __VA_ARGS__); \
LOG_ANDROID(ANDROID_LOG_WARN, __VA_ARGS__); \
} while(0)
#define ERR(...) do { \
if UNLIKELY(gLogLevel >= LogError) \
- AL_PRINT("(EE)", __VA_ARGS__); \
+ AL_PRINT(gLogFile, "AL lib: (EE) " __VA_ARGS__); \
LOG_ANDROID(ANDROID_LOG_ERROR, __VA_ARGS__); \
} while(0)