diff options
author | Chris Robinson <[email protected]> | 2012-10-07 04:31:31 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-10-07 04:31:31 -0700 |
commit | 708f3ccc3d457499ac046a009a7c3317b31a2b4b (patch) | |
tree | 7feb7d2ae2bb2ae2a5c5b362778f50266d7a25a5 /OpenAL32 | |
parent | 84f4afa5f2928a6b2099df71e4e2ead6e48875d0 (diff) |
Add trace, warn, and error markers to logged output
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alMain.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index ba6a5c8b..0b584fe2 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -826,8 +826,8 @@ ALfloat CalcHrtfDelta(ALfloat oldGain, ALfloat newGain, const ALfloat olddir[3], void GetLerpedHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat gain, ALfloat (*coeffs)[2], ALuint *delays); ALuint GetMovingHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat azimuth, ALfloat gain, ALfloat delta, ALint counter, ALfloat (*coeffs)[2], ALuint *delays, ALfloat (*coeffStep)[2], ALint *delayStep); -void al_print(const char *func, const char *fmt, ...) PRINTF_STYLE(2,3); -#define AL_PRINT(...) al_print(__FUNCTION__, __VA_ARGS__) +void al_print(const char *type, const char *func, const char *fmt, ...) PRINTF_STYLE(3,4); +#define AL_PRINT(T, ...) al_print((T), __FUNCTION__, __VA_ARGS__) extern FILE *LogFile; enum LogLevel { @@ -841,22 +841,22 @@ extern enum LogLevel LogLevel; #define TRACEREF(...) do { \ if(LogLevel >= LogRef) \ - AL_PRINT(__VA_ARGS__); \ + AL_PRINT("(--)", __VA_ARGS__); \ } while(0) #define TRACE(...) do { \ if(LogLevel >= LogTrace) \ - AL_PRINT(__VA_ARGS__); \ + AL_PRINT("(II)", __VA_ARGS__); \ } while(0) #define WARN(...) do { \ if(LogLevel >= LogWarning) \ - AL_PRINT(__VA_ARGS__); \ + AL_PRINT("(WW)", __VA_ARGS__); \ } while(0) #define ERR(...) do { \ if(LogLevel >= LogError) \ - AL_PRINT(__VA_ARGS__); \ + AL_PRINT("(EE)", __VA_ARGS__); \ } while(0) |