summaryrefslogtreecommitdiff
path: root/print_wcp.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 21:30:29 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-05-06 21:44:37 -0700
commit0167af41624e8ef86b657d83ece09fe4e12fd6a2 (patch)
tree7d054011f293d97713f7662b35afacb381696d36 /print_wcp.c
parentaec53bc090ef6b63e16efebab3f8c8e6f329eb6b (diff)
downloadxscope-0167af41624e8ef86b657d83ece09fe4e12fd6a2.tar.gz
Make big requests support work without modifying buffer
Fixes corruption of big requests data in -v4/raw output Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'print_wcp.c')
-rw-r--r--print_wcp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/print_wcp.c b/print_wcp.c
index 5c0bbd0..ff81cc1 100644
--- a/print_wcp.c
+++ b/print_wcp.c
@@ -39,7 +39,7 @@ WcpQueryVersion (
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, CONST2(2), "request length");
+ printreqlen(buf, fd, CONST2(2));
}
void
@@ -360,7 +360,7 @@ WcpPutImage (
PrintField(SBf, 0, 4, CARD32, "sequence number");
n = (IShort(&buf[2]) - 7) * 4;
- printfield(buf, 2, 2, DVALUE2(7 + (n + p) / 4), "request length");
+ printreqlen(buf, fd, DVALUE2(7 + (n + p) / 4));
PrintField(buf, 4, 4, DRAWABLE, "drawable");
PrintField(buf, 8, 4, GCONTEXT, "gc");
if (Verbose > 2)
@@ -396,7 +396,7 @@ WcpGetImage (
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, CONST2(2), "request length");
+ printreqlen(buf, fd, CONST2(2));
PrintField(buf, 4, 4, DRAWABLE, "drawable");
PrintField(buf, 8, 4, CARD32, "lut");
PrintField(buf, 12, 2, INT16, "x");
@@ -436,7 +436,7 @@ WcpCreateColorCursor (
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, CONST2(2), "request length");
+ printreqlen(buf, fd, CONST2(2));
}
void
@@ -451,7 +451,7 @@ WcpCreateLut (
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, CONST2(2), "request length");
+ printreqlen(buf, fd, CONST2(2));
}
void
@@ -466,7 +466,7 @@ WcpFreeLut (
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, CONST2(2), "request length");
+ printreqlen(buf, fd, CONST2(2));
}
void
@@ -481,5 +481,5 @@ WcpCopyArea (
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, CONST2(2), "request length");
+ printreqlen(buf, fd, CONST2(2));
}