summaryrefslogtreecommitdiff
path: root/print11.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-08-12 15:10:46 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-08-12 16:44:45 -0700
commitf65c809fb7c269c2bf450274f424feab85ea95cb (patch)
tree3be6b0068ec52c3fad86c3fb32be12330a6f0868 /print11.c
parent96d5676e6ef1a1bf687e44f2790d911364df7878 (diff)
downloadxscope-f65c809fb7c269c2bf450274f424feab85ea95cb.tar.gz
Print more useful messages for unknown replies, events & errors
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'print11.c')
-rw-r--r--print11.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/print11.c b/print11.c
index 3d7984a..e29ac23 100644
--- a/print11.c
+++ b/print11.c
@@ -413,6 +413,19 @@ ImplementationError (
PrintField(buf, 10, 1, CARD8, "major opcode");
}
+void
+UnknownError (
+ const unsigned char *buf)
+{
+ PrintField(RBf, 1, 1, ERROR, ERRORHEADER);
+ if (Verbose < 1)
+ return;
+ printfield (buf, 2, 2, CARD16, "sequence number");
+ PrintField(buf, 4, 4, CARD32, "bad resource id");
+ PrintField(buf, 8, 2, CARD16, "minor opcode");
+ PrintField(buf, 10, 1, CARD8, "major opcode");
+}
+
/* ************************************************************ */
/* */
/* */
@@ -940,6 +953,18 @@ MappingNotifyEvent (
PrintField(buf, 6, 1, CARD8, "count");
}
+void
+UnknownEvent (
+ const unsigned char *buf)
+{
+ PrintField(buf, 0, 1, EVENT, EVENTHEADER);
+ if (Verbose < 1)
+ return;
+ PrintField(buf, 1, 1, CARD8, "detail");
+ printfield (buf, 2, 2, CARD16, "sequence number");
+ PrintBytes(&buf[4], 28, "data");
+}
+
/* ************************************************************ */
/* */
/* */