aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-02 02:00:37 -0700
committerChris Robinson <[email protected]>2011-09-02 02:00:37 -0700
commit3a2fa18744127618c5a6715ff1e24f18c9f9dd49 (patch)
treec0fbd8448f57cce5b466d264619f902daff4c331 /OpenAL32/Include
parent370c9f553df9af129f1504270dbd36cd5066f250 (diff)
Log the function name instead of the source file and line number
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alMain.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 564730c4..ae24f54c 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -674,9 +674,8 @@ ALfloat CalcHrtfDelta(ALfloat oldGain, ALfloat newGain, const ALfloat olddir[3],
void GetLerpedHrtfCoeffs(ALfloat elevation, ALfloat azimuth, ALfloat gain, ALfloat (*coeffs)[2], ALuint *delays);
ALuint GetMovingHrtfCoeffs(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 *fname, unsigned int line, const char *fmt, ...)
- PRINTF_STYLE(3,4);
-#define AL_PRINT(...) al_print(__FILE__, __LINE__, __VA_ARGS__)
+void al_print(const char *func, const char *fmt, ...) PRINTF_STYLE(2,3);
+#define AL_PRINT(...) al_print(__FUNCTION__, __VA_ARGS__)
extern FILE *LogFile;
enum LogLevel {