summaryrefslogtreecommitdiff
path: root/hw/xwin
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-01-12 16:10:00 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-01-12 16:10:00 +0000
commit15895b411779aa3c14ffb92fb58cd8ec24845ea7 (patch)
tree67474171f225db76bd81bad10e1c17180ae17762 /hw/xwin
parent8aabc94596dae0fd4ce2c975de75946685faf2cd (diff)
winmsg.c
Introduce function winTrace which prints log message with verbosity 10 Use winTrace for 3 heavily called functions
Diffstat (limited to 'hw/xwin')
-rw-r--r--hw/xwin/ChangeLog8
-rw-r--r--hw/xwin/winmsg.c9
-rw-r--r--hw/xwin/winmsg.h1
-rw-r--r--hw/xwin/winmultiwindowwindow.c8
4 files changed, 22 insertions, 4 deletions
diff --git a/hw/xwin/ChangeLog b/hw/xwin/ChangeLog
index 2b78d8605..bcaff0a89 100644
--- a/hw/xwin/ChangeLog
+++ b/hw/xwin/ChangeLog
@@ -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:
diff --git a/hw/xwin/winmsg.c b/hw/xwin/winmsg.c
index 49ecd09f9..2e5e28f59 100644
--- a/hw/xwin/winmsg.c
+++ b/hw/xwin/winmsg.c
@@ -103,6 +103,15 @@ winDebug (const char *format, ...)
}
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)
{
winW32ErrorEx(verb, msg, GetLastError());
diff --git a/hw/xwin/winmsg.h b/hw/xwin/winmsg.h
index f29972004..a9eb3c7ac 100644
--- a/hw/xwin/winmsg.h
+++ b/hw/xwin/winmsg.h
@@ -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);
diff --git a/hw/xwin/winmultiwindowwindow.c b/hw/xwin/winmultiwindowwindow.c
index 4a0b1e0cf..e2c0adee4 100644
--- a/hw/xwin/winmultiwindowwindow.c
+++ b/hw/xwin/winmultiwindowwindow.c
@@ -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)