From a46e48f6039e6ee301406ecea13892b9b8ec873e Mon Sep 17 00:00:00 2001 From: Quinn Date: Sat, 22 Mar 2025 15:31:12 +0100 Subject: [PATCH] add line number and file name to error log --- src/window/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window/audio.c b/src/window/audio.c index e5710df..5018fb8 100644 --- a/src/window/audio.c +++ b/src/window/audio.c @@ -77,7 +77,7 @@ static int8_t audio_cvt(audiodevice const* dev, SDL_AudioSpec const* spec, uint8 // converts the audio to the new format if (SDL_ConvertAudio(&cvt)) { - error("something went wrong when loading/converting an audio buffer! SDL Error: %s", SDL_GetError()); + error("%s:%u something went wrong when loading/converting an audio buffer! SDL Error: %s", __FILE_NAME__, __LINE__, SDL_GetError()); free(cvt.buf); return 1; }