xfree86: compat: make xf86MsgVerb() a bit less noisier

print the driver bug warning only once.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-07-03 14:07:30 +02:00 committed by Enrico Weigelt
parent 7ca8b37ab1
commit 2069db50e7

View File

@ -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);