From d2575b30dd7d20cca06f113a1fae81a81fd7eb79 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 12 Sep 2024 10:21:34 +0200 Subject: [PATCH] (!1689) pseudoramix: replace PseudoramiXTrace() and PseudoramiXDebug() by LogMessageVerb() Since we're only going through macros (that are calling these), this extra wrapper function isn't needed at all - using LogMessageVerb() directly. Signed-off-by: Enrico Weigelt, metux IT consult --- pseudoramiX/pseudoramiX.c | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/pseudoramiX/pseudoramiX.c b/pseudoramiX/pseudoramiX.c index 1053f7c28..e5d68222f 100644 --- a/pseudoramiX/pseudoramiX.c +++ b/pseudoramiX/pseudoramiX.c @@ -48,8 +48,8 @@ #include "window.h" #include "globals.h" -#define TRACE PseudoramiXTrace("TRACE " __FILE__ ":%s",__FUNCTION__) -#define DEBUG_LOG PseudoramiXDebug +#define TRACE LogMessageVerb(X_NONE, 10, "TRACE " __FILE__ ":%s", __FUNCTION__) +#define DEBUG_LOG(...) LogMessageVerb(X_NONE, 3, __VA_ARGS__); Bool noPseudoramiXExtension = FALSE; extern Bool noRRXineramaExtension; @@ -102,34 +102,6 @@ static int pseudoramiXScreensAllocated = 0; static int pseudoramiXNumScreens = 0; static unsigned long pseudoramiXGeneration = 0; -static void -PseudoramiXTrace(const char *format, ...) - _X_ATTRIBUTE_PRINTF(1, 2); - -static void -PseudoramiXTrace(const char *format, ...) -{ - va_list ap; - - va_start(ap, format); - LogVMessageVerb(X_NONE, 10, format, ap); - va_end(ap); -} - -static void -PseudoramiXDebug(const char *format, ...) - _X_ATTRIBUTE_PRINTF(1, 2); - -static void -PseudoramiXDebug(const char *format, ...) -{ - va_list ap; - - va_start(ap, format); - LogVMessageVerb(X_NONE, 3, format, ap); - va_end(ap); -} - // Add a PseudoramiX screen. // The rest of the X server will know nothing about this screen. // Can be called before or after extension init.