(!1691) os: log: replace VErrorF() by LogVMessageVerb()

Since LogVMessageVerb() is now signal safe, we can use this one instead.
Leaving VErrorF() macro for backwards compat with drivers.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-09-13 13:02:47 +02:00
parent dfacf8cab8
commit d930b6cc17
7 changed files with 14 additions and 18 deletions

View File

@@ -85,6 +85,6 @@ printk(const char *fmt, ...)
va_list argptr;
va_start(argptr, fmt);
VErrorF(fmt, argptr);
LogVMessageVerb(X_NONE, -1, fmt, argptr);
va_end(argptr);
}

View File

@@ -145,6 +145,4 @@ xf86freeExtensions(XF86ConfExtensionsPtr ptr);
/* Externally provided functions */
void
ErrorF(const char *f, ...);
void
VErrorF(const char *f, va_list args);
#endif

View File

@@ -975,7 +975,7 @@ xf86parseError(const char *format, ...)
ErrorF("Parse error on line %d of section %s in file %s\n\t",
configLineNo, configSection, filename);
va_start(ap, format);
VErrorF(format, ap);
LogVMessageVerb(X_NONE, -1, format, ap);
va_end(ap);
ErrorF("\n");
@@ -990,7 +990,7 @@ xf86validationError(const char *format, ...)
ErrorF("Data incomplete in file %s\n\t", filename);
va_start(ap, format);
VErrorF(format, ap);
LogVMessageVerb(X_NONE, -1, format, ap);
va_end(ap);
ErrorF("\n");

View File

@@ -91,7 +91,7 @@ xwl_give_up(const char *f, ...)
va_list args;
va_start(args, f);
VErrorF(f, args);
LogVMessageVerb(X_NONE, -1, f, args);
va_end(args);
CloseWellKnownConnections();