summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfaith <faith>2000-02-12 10:53:53 +0000
committerfaith <faith>2000-02-12 10:53:53 +0000
commitd01f9534227ba58dece15a610be9d36c30380eb0 (patch)
treebcbdb638109d8782bf68f0328fd25aa1720e2025
parent13d0f42734769a5d77ded61e3fa51753f22ed016 (diff)
Debugging code for client-side copy elimination.smt-0-0-1-stage2csmt-0-0-1-branch
-rw-r--r--xc/programs/Xserver/os/io.c23
1 files changed, 22 insertions, 1 deletions
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();
@@ -616,6 +625,18 @@ ReadRequestFromClient(client)
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;
}