summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}