aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2024-04-14 16:48:05 +0200
committerUlrich Sibiller <uli42@gmx.de>2024-05-11 18:53:27 +0200
commitd1754f8067afdf11216c236fdb9a7f1464345065 (patch)
tree7312f5f5982b721319ed0696704ac28b17b900cd /nx-X11
parent9df98ab60498dd7d361abb9b534acf9fb1f3ce44 (diff)
downloadnx-libs-d1754f8067afdf11216c236fdb9a7f1464345065.tar.gz
nx-libs-d1754f8067afdf11216c236fdb9a7f1464345065.tar.bz2
nx-libs-d1754f8067afdf11216c236fdb9a7f1464345065.zip
Window.c: improve some TEST/DEBUG output
add [] around values where they were missing
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Window.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Window.c b/nx-X11/programs/Xserver/hw/nxagent/Window.c
index e23c8392a..e86d85f86 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -3164,8 +3164,8 @@ static void nxagentReconfigureWindowCursor(void * param0, XID param1, void * dat
}
#ifdef DEBUG
- fprintf(stderr, "nxagentReconfigureWindowCursor: %p - ID %lx geometry (%d,%d,%d,%d) "
- "cursor %p - ID %lx\n",
+ fprintf(stderr, "nxagentReconfigureWindowCursor: [%p] - ID [%lx] geometry [%d,%d,%d,%d] "
+ "cursor [%p] - ID [%lx]\n",
pWin, nxagentWindow(pWin),
pWin -> drawable.x,
pWin -> drawable.y,
@@ -3177,7 +3177,7 @@ static void nxagentReconfigureWindowCursor(void * param0, XID param1, void * dat
if (nxagentCursor(pCursor, pScreen) == None)
{
#ifdef NXAGENT_RECONNECT_WINDOW_DEBUG
- fprintf(stderr, "nxagentReconfigureWindowCursor: reconnecting valid cursor %lx\n",
+ fprintf(stderr, "nxagentReconfigureWindowCursor: reconnecting valid cursor [%p]\n",
(void*)pCursor);
#endif
@@ -3207,7 +3207,7 @@ static void nxagentReconfigureWindow(void * param0, XID param1, void * data_buff
unsigned long mask = 0;
#ifdef DEBUG
- fprintf(stderr, "nxagentReconfigureWindow: pWin %p - ID %lx\n", pWin, nxagentWindow(pWin));
+ fprintf(stderr, "nxagentReconfigureWindow: pWin [%p] - ID [%lx]\n", pWin, nxagentWindow(pWin));
#endif
if (pWin -> drawable.class == InputOnly)
@@ -3304,7 +3304,7 @@ Bool nxagentCheckWindowIntegrity(WindowPtr pWin)
char *data = calloc(1, length);
if (data == NULL)
{
- FatalError("nxagentCheckWindowIntegrity: Failed to allocate a buffer of size %d.\n", length);
+ FatalError("nxagentCheckWindowIntegrity: Failed to allocate a buffer of size [%d].\n", length);
}
unsigned long plane_mask = AllPlanes;
@@ -3339,9 +3339,9 @@ Bool nxagentCheckWindowIntegrity(WindowPtr pWin)
#endif
#ifdef WARNING
- fprintf(stderr, "nxagentCheckWindowIntegrity: Window %p width %d, height %d, has been realized "
+ fprintf(stderr, "nxagentCheckWindowIntegrity: Window [%p] geometry [%d,%d], has been realized "
"but the data buffer still differs.\n", (void*) pWin, width, height);
- fprintf(stderr, "nxagentCheckWindowIntegrity: bytes_per_line = %d byte pad %d format %d.\n",
+ fprintf(stderr, "nxagentCheckWindowIntegrity: bytes_per_line = [%d] byte pad [%d] format [%d].\n",
image -> bytes_per_line, nxagentImagePad(width, height, 0, depth), image->format);
fprintf(stderr, "nxagentCheckWindowIntegrity: image is corrupted!!\n");
@@ -3350,7 +3350,7 @@ Bool nxagentCheckWindowIntegrity(WindowPtr pWin)
else
{
#ifdef WARNING
- fprintf(stderr, "nxagentCheckWindowIntegrity: Window %p has been realized "
+ fprintf(stderr, "nxagentCheckWindowIntegrity: Window [%p] has been realized "
"now remote and framebuffer data are synchronized.\n", (void*) pWin);
#endif
}
@@ -3365,7 +3365,7 @@ Bool nxagentCheckWindowIntegrity(WindowPtr pWin)
else
{
#ifdef WARNING
- fprintf(stderr, "nxagentCheckWindowIntegrity: ignored window %p with geometry (%d,%d).\n",
+ fprintf(stderr, "nxagentCheckWindowIntegrity: ignored window [%p] with geometry [%d,%d].\n",
(void*) pWin, width, height);
#endif
}