From 2069db50e7f465b7116602e4e118fcb5863c87be Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 3 Jul 2025 14:07:30 +0200 Subject: [PATCH] xfree86: compat: make xf86MsgVerb() a bit less noisier print the driver bug warning only once. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/compat/log.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/compat/log.c b/hw/xfree86/compat/log.c index 64014e205..061821efd 100644 --- a/hw/xfree86/compat/log.c +++ b/hw/xfree86/compat/log.c @@ -39,7 +39,12 @@ _X_EXPORT void xf86MsgVerb(MessageType type, int verb, const char *format, ...) void xf86MsgVerb(MessageType type, int verb, const char *format, ...) { - xf86NVidiaBugInternalFunc("xf86MsgVerb()"); + static char reportxf86MsgVerb = 1; + + if (reportxf86MsgVerb) { + xf86NVidiaBugInternalFunc("xf86MsgVerb()"); + reportxf86MsgVerb = 0; + } va_list ap; va_start(ap, format);