Introduce function winTrace which prints log message with verbosity 10
Use winTrace for 3 heavily called functions
This commit is contained in:
Alexander Gottwald 2005-01-12 16:10:00 +00:00
parent 8aabc94596
commit 15895b4117
4 changed files with 22 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2005-01-12 Alexander Gottwald <ago at freedesktop dot org>
* winmsg.c
* winmsg.h:
Introduce function winTrace which prints log message with verbosity 10
* winmultiwindowwindow.c:
Use winTrace for 3 heavily called functions
2005-01-11 Alexander Gottwald <ago at freedesktop dot org>
* XWin.man:

View File

@ -102,6 +102,15 @@ winDebug (const char *format, ...)
va_end (ap);
}
void
winTrace (const char *format, ...)
{
va_list ap;
va_start (ap, format);
LogVMessageVerb(X_NONE, 10, format, ap);
va_end (ap);
}
void
winW32Error(int verb, const char *msg)
{

View File

@ -42,6 +42,7 @@ void winDrvMsg (int scrnIndex, MessageType type, const char *format, ...);
void winMsgVerb (MessageType type, int verb, const char *format, ...);
void winMsg (MessageType type, const char *format, ...);
void winDebug (const char *format, ...);
void winTrace (const char *format, ...);
void winErrorFVerb (int verb, const char *format, ...);
void winW32Error(int verb, const char *message);

View File

@ -91,7 +91,7 @@ winCreateWindowMultiWindow (WindowPtr pWin)
winWindowPriv(pWin);
#if CYGMULTIWINDOW_DEBUG
ErrorF ("winCreateWindowMultiWindow - pWin: %p\n", pWin);
winTrace ("winCreateWindowMultiWindow - pWin: %p\n", pWin);
#endif
/* Call any wrapped CreateWindow function */
@ -161,7 +161,7 @@ winPositionWindowMultiWindow (WindowPtr pWin, int x, int y)
DWORD dwStyle;
#if CYGMULTIWINDOW_DEBUG
ErrorF ("winPositionWindowMultiWindow - pWin: %p\n", pWin);
winTrace ("winPositionWindowMultiWindow - pWin: %p\n", pWin);
#endif
/* Call any wrapped PositionWindow function */
@ -381,7 +381,7 @@ winRestackWindowMultiWindow (WindowPtr pWin, WindowPtr pOldNextSib)
winWindowPriv(pWin);
#if CYGMULTIWINDOW_DEBUG || CYGWINDOWING_DEBUG
ErrorF ("winRestackMultiWindow - %08x\n", pWin);
winTrace ("winRestackMultiWindow - %08x\n", pWin);
#endif
/* Call any wrapped RestackWindow function */
@ -756,7 +756,7 @@ winReorderWindowsMultiWindow (void)
DWORD dwWindowProcessID = 0;
#if CYGMULTIWINDOW_DEBUG || CYGWINDOWING_DEBUG
ErrorF ("winReorderWindowsMultiWindow\n");
winTrace ("winReorderWindowsMultiWindow\n");
#endif
if (fRestacking)