From 576f13ac7c8538e7b710c798f56ccd0e500d01f5 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 15 Dec 2024 14:05:41 -0500 Subject: [PATCH] alsa: Put debug logging back into correct category and logging level. --- src/audio/alsa/SDL_alsa_audio.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/audio/alsa/SDL_alsa_audio.c b/src/audio/alsa/SDL_alsa_audio.c index 4a6bfa8b31..fe5c1a236f 100644 --- a/src/audio/alsa/SDL_alsa_audio.c +++ b/src/audio/alsa/SDL_alsa_audio.c @@ -31,15 +31,16 @@ #define SDL_ALSA_HOTPLUG_THREAD 1 #endif +// this turns off debug logging completely (but by default this goes to the bitbucket). +#ifndef SDL_ALSA_DEBUG +#define SDL_ALSA_DEBUG 1 +#endif + #include "../SDL_sysaudio.h" #include "SDL_alsa_audio.h" -#ifndef SDL_ALSA_DEBUG -#define SDL_ALSA_DEBUG 0 -#endif - #if SDL_ALSA_DEBUG -#define LOGDEBUG(...) SDL_Log("ALSA: " __VA_ARGS__) +#define LOGDEBUG(...) SDL_LogDebug(SDL_LOG_CATEGORY_AUDIO, "ALSA: " __VA_ARGS__) #else #define LOGDEBUG(...) #endif