summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2014-03-03 11:57:54 +0000
committerDaniel Stone <daniels@collabora.com>2014-03-03 11:57:54 +0000
commit914b5ea0ab2392278bcc417f88a9026faf2d006d (patch)
tree02704b695999660bf5c4e593829314fed943b8ea
parent73c82c6b983e39e24f49c2c794d654bd349309d3 (diff)
xscope: Fix unknown GenericEvent type decoding
Transposed parameters meant that it was printing the sequence number rather than the type. Signed-off-by: Daniel Stone <daniels@collabora.com>
-rw-r--r--print11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print11.c b/print11.c
index cf477e2..443ad14 100644
--- a/print11.c
+++ b/print11.c
@@ -835,7 +835,7 @@ UnknownGenericEvent(const unsigned char *buf)
PrintField(buf, 1, 1, EXTENSION, "extension");
printfield(buf, 2, 2, CARD16, "sequence number");
printfield(buf, 4, 4, DVALUE4(n), "event length");
- PrintField(buf, 2, 8, CARD16, "event type");
+ PrintField(buf, 8, 2, CARD16, "event type");
n = ILong(&buf[4]) + 5;
(void) PrintList(&buf[12], n, CARD32, "data");