diff options
Diffstat (limited to 'xorg-server/hw/xwin/winmsg.c')
-rw-r--r-- | xorg-server/hw/xwin/winmsg.c | 82 |
1 files changed, 12 insertions, 70 deletions
diff --git a/xorg-server/hw/xwin/winmsg.c b/xorg-server/hw/xwin/winmsg.c index 07c2f30eb..3b08d4fde 100644 --- a/xorg-server/hw/xwin/winmsg.c +++ b/xorg-server/hw/xwin/winmsg.c @@ -33,70 +33,16 @@ #endif #include "win.h" #include "winmsg.h" -#if CYGDEBUG +#ifdef WINDBG #include "winmessages.h" #endif #include <stdarg.h> -void winVMsg(int, MessageType, int verb, const char *, va_list); +#ifdef WINDBG -void -winVMsg(int scrnIndex, MessageType type, int verb, const char *format, - va_list ap) -{ - LogVMessageVerb(type, verb, format, ap); -} - -void -winDrvMsg(int scrnIndex, MessageType type, const char *format, ...) -{ - va_list ap; - - va_start(ap, format); - LogVMessageVerb(type, 0, format, ap); - va_end(ap); -} - -void -winMsg(MessageType type, const char *format, ...) -{ - va_list ap; - - va_start(ap, format); - LogVMessageVerb(type, 1, format, ap); - va_end(ap); -} - -void -winDrvMsgVerb(int scrnIndex, MessageType type, int verb, const char *format, - ...) -{ - va_list ap; - va_start(ap, format); - LogVMessageVerb(type, verb, format, ap); - va_end(ap); -} -void -winMsgVerb(MessageType type, int verb, const char *format, ...) -{ - va_list ap; - va_start(ap, format); - LogVMessageVerb(type, verb, format, ap); - va_end(ap); -} - -void -winErrorFVerb(int verb, const char *format, ...) -{ - va_list ap; - - va_start(ap, format); - LogVMessageVerb(X_NONE, verb, format, ap); - va_end(ap); -} void winDebug(const char *format, ...) @@ -109,23 +55,24 @@ winDebug(const char *format, ...) } void -winTrace(const char *format, ...) +winDebug4 (const char *format, ...) { va_list ap; va_start(ap, format); - LogVMessageVerb(X_NONE, 10, format, ap); + LogVMessageVerb(X_NONE, 4, format, ap); va_end(ap); } +#endif void -winW32Error(int verb, const char *msg) +winW32Error(const char *msg) { - winW32ErrorEx(verb, msg, GetLastError()); + winW32ErrorEx(msg, GetLastError()); } void -winW32ErrorEx(int verb, const char *msg, DWORD errorcode) +winW32ErrorEx(const char *msg, DWORD errorcode) { LPVOID buffer; @@ -136,15 +83,16 @@ winW32ErrorEx(int verb, const char *msg, DWORD errorcode) errorcode, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) & buffer, 0, NULL)) { - winErrorFVerb(verb, "Unknown error in FormatMessage!\n"); + ErrorF(msg); + ErrorF("Unknown error in FormatMessage!\n"); } else { - winErrorFVerb(verb, "%s %s", msg, (char *) buffer); + ErrorF("%s %s", msg, (char *)buffer); LocalFree(buffer); } } -#if CYGDEBUG +#ifdef WINDBG void winDebugWin32Message(const char *function, HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) @@ -173,10 +121,4 @@ winDebugWin32Message(const char *function, HWND hwnd, UINT message, } } } -#else -void -winDebugWin32Message(const char *function, HWND hwnd, UINT message, - WPARAM wParam, LPARAM lParam) -{ -} #endif |