xfree86: drop xf86MsgVerb() in favor of LogMessageVerb()

This function is doing the same like LogMessageVerb(), so no need to keep
around a duplicate implementation. Leaving it as a macro, until all callers,
also in drivers, have been migrated.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1679>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-09-10 17:25:08 +02:00 committed by Marge Bot
parent b87314c876
commit 14767eccc0
2 changed files with 3 additions and 14 deletions

View File

@ -254,9 +254,6 @@ extern _X_EXPORT void
xf86DrvMsg(int scrnIndex, MessageType type, const char *format, ...) xf86DrvMsg(int scrnIndex, MessageType type, const char *format, ...)
_X_ATTRIBUTE_PRINTF(3, 4); _X_ATTRIBUTE_PRINTF(3, 4);
extern _X_EXPORT void extern _X_EXPORT void
xf86MsgVerb(MessageType type, int verb, const char *format, ...)
_X_ATTRIBUTE_PRINTF(3, 4);
extern _X_EXPORT void
xf86Msg(MessageType type, const char *format, ...) xf86Msg(MessageType type, const char *format, ...)
_X_ATTRIBUTE_PRINTF(2, 3); _X_ATTRIBUTE_PRINTF(2, 3);
extern _X_EXPORT void extern _X_EXPORT void
@ -406,4 +403,7 @@ extern _X_EXPORT ScreenPtr xf86ScrnToScreen(ScrnInfoPtr pScrn);
extern _X_EXPORT void extern _X_EXPORT void
xf86UpdateDesktopDimensions(void); xf86UpdateDesktopDimensions(void);
/* only for backwards (source) compatibility */
#define xf86MsgVerb LogMessageVerb
#endif /* _XF86_H */ #endif /* _XF86_H */

View File

@ -1094,17 +1094,6 @@ xf86IDrvMsg(InputInfoPtr dev, MessageType type, const char *format, ...)
va_end(ap); va_end(ap);
} }
/* Print non-driver messages with verbose level specified directly */
void
xf86MsgVerb(MessageType type, int verb, const char *format, ...)
{
va_list ap;
va_start(ap, format);
LogVMessageVerb(type, verb, format, ap);
va_end(ap);
}
/* Print non-driver messages with verbose level of 1 (default) */ /* Print non-driver messages with verbose level of 1 (default) */
void void
xf86Msg(MessageType type, const char *format, ...) xf86Msg(MessageType type, const char *format, ...)