From d01f9534227ba58dece15a610be9d36c30380eb0 Mon Sep 17 00:00:00 2001 From: faith Date: Sat, 12 Feb 2000 10:53:53 +0000 Subject: Debugging code for client-side copy elimination. --- xc/programs/Xserver/os/io.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/xc/programs/Xserver/os/io.c b/xc/programs/Xserver/os/io.c index 5dbef1b5c..759af8cd5 100644 --- a/xc/programs/Xserver/os/io.c +++ b/xc/programs/Xserver/os/io.c @@ -369,6 +369,12 @@ ReadRequestFromClient(client) if ((gotnow > 0) && (oci->bufptr != oci->buffer)) { #ifdef XF86SMT if (oci->smt) { +#if 0 + ErrorF("ARevert gotnow=%d, needed = %d, size = %d," + " bufptr = %p, buffer = %p\n", + gotnow, needed, oci->size, + oci->bufptr, oci->buffer); +#endif if (RevertSmtBuffer(oci, gotnow, needed)) { YieldControlDeath(); return -1; @@ -383,7 +389,10 @@ ReadRequestFromClient(client) #ifdef XF86SMT if (oci->smt) { #if 0 - ErrorF("**********HERE %p %p\n", oci->buffer, oci->bufptr); + ErrorF("BRevert gotnow=%d, needed = %d, size = %d," + " bufptr = %p, buffer = %p\n", + gotnow, needed, oci->size, + oci->bufptr, oci->buffer); #endif if (RevertSmtBuffer(oci, gotnow, needed)) { YieldControlDeath(); @@ -615,6 +624,18 @@ ReadRequestFromClient(client) #if 0 ErrorF("Returns %d (gotnow = %d, bufcnt = %d, bufptr = %p)\n", needed, gotnow, oci->bufcnt, oci->bufptr); +#endif +#if 0 + { + int i; + unsigned char *p = oci->bufptr; + + ErrorF("%4d (%p):", needed, p); + for (i = 0; i < (needed < 16 ? needed : 16); i++, ++p) { + ErrorF(" %02x", *p); + } + ErrorF("\n"); + } #endif return needed; } -- cgit v1.2.3