(!1691) os: log: make LogVMessageVerb() signal safe

We already have our own signal safe vnsprintf() implementation, which is used
for formatting log messages while being in a signal handler, there's no need
to have two separate implementations of all the logging functions.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2024-09-12 16:42:19 +02:00
parent 07233835c7
commit dfe69ccbf8
2 changed files with 9 additions and 29 deletions

View File

@@ -348,9 +348,6 @@ _X_ATTRIBUTE_PRINTF(2, 3);
extern _X_EXPORT void
LogMessageVerbSigSafe(MessageType type, int verb, const char *format, ...)
_X_ATTRIBUTE_PRINTF(3, 4);
extern _X_EXPORT void
LogVMessageVerbSigSafe(MessageType type, int verb, const char *format, va_list args)
_X_ATTRIBUTE_PRINTF(3, 0);
void
LogVHdrMessageVerb(MessageType type, int verb,
@@ -394,4 +391,7 @@ xorg_backtrace(void);
typedef _sigset_t sigset_t;
#endif
/* should not be used anymore, just for backwards compat with drivers */
#define LogVMessageVerbSigSafe(...) LogVMessageVerb(__VA_ARGS__)
#endif /* OS_H */