summaryrefslogtreecommitdiff
path: root/print_shm.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_shm.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_shm.c')
-rw-r--r--print_shm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/print_shm.c b/print_shm.c
index 667d556..aad6d28 100644
--- a/print_shm.c
+++ b/print_shm.c
@@ -36,7 +36,7 @@ MitshmQueryVersion (FD fd, const unsigned char *buf)
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, CONST2(2), "request length");
+ printreqlen(buf, fd, CONST2(2));
}
void
@@ -69,7 +69,7 @@ MitshmAttach (FD fd, const unsigned char *buf)
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, CARD32, "shmseg");
PrintField(buf, 8, 4, CARD32, "shmid");
PrintField(buf, 12, 1, BOOL, "read-only");
@@ -85,7 +85,7 @@ MitshmDetach (FD fd, const unsigned char *buf)
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, CARD32, "shmseg");
}
@@ -99,7 +99,7 @@ MitshmPutImage (FD fd, const unsigned char *buf)
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, GCONTEXT, "gc");
PrintField (buf, 12, 2, CARD16, "total-width");
@@ -128,7 +128,7 @@ MitshmGetImage (FD fd, const unsigned char *buf)
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, DVALUE2(5+n), "request length");
+ printreqlen(buf, fd, DVALUE2(5+n));
PrintField (buf, 4, 4, DRAWABLE, "drawable");
PrintField (buf, 8, 2, INT16, "x");
PrintField (buf, 10, 2, INT16, "y");
@@ -166,7 +166,7 @@ MitshmCreatePixmap (FD fd, const unsigned char *buf)
if (Verbose > 1)
PrintField(SBf, 0, 4, CARD32, "sequence number");
- printfield(buf, 2, 2, DVALUE2(3+n), "request length");
+ printreqlen(buf, fd, DVALUE2(3+n));
PrintField(buf, 4, 4, PIXMAP, "pid");
PrintField(buf, 8, 4, DRAWABLE, "drawable");
PrintField(buf, 12, 2, CARD16, "width");