(!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 <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-09-12 10:21:34 +02:00
parent 2e74b2fde6
commit d2575b30dd

View File

@ -48,8 +48,8 @@
#include "window.h" #include "window.h"
#include "globals.h" #include "globals.h"
#define TRACE PseudoramiXTrace("TRACE " __FILE__ ":%s",__FUNCTION__) #define TRACE LogMessageVerb(X_NONE, 10, "TRACE " __FILE__ ":%s", __FUNCTION__)
#define DEBUG_LOG PseudoramiXDebug #define DEBUG_LOG(...) LogMessageVerb(X_NONE, 3, __VA_ARGS__);
Bool noPseudoramiXExtension = FALSE; Bool noPseudoramiXExtension = FALSE;
extern Bool noRRXineramaExtension; extern Bool noRRXineramaExtension;
@ -102,34 +102,6 @@ static int pseudoramiXScreensAllocated = 0;
static int pseudoramiXNumScreens = 0; static int pseudoramiXNumScreens = 0;
static unsigned long pseudoramiXGeneration = 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. // Add a PseudoramiX screen.
// The rest of the X server will know nothing about this screen. // The rest of the X server will know nothing about this screen.
// Can be called before or after extension init. // Can be called before or after extension init.