From 3a2fa18744127618c5a6715ff1e24f18c9f9dd49 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 2 Sep 2011 02:00:37 -0700 Subject: Log the function name instead of the source file and line number --- OpenAL32/Include/alMain.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'OpenAL32/Include/alMain.h') 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 { -- cgit v1.2.3