summaryrefslogtreecommitdiff
path: root/extensions.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 /extensions.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 'extensions.c')
-rw-r--r--extensions.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions.c b/extensions.c
index cba6f7c..bacc47e 100644
--- a/extensions.c
+++ b/extensions.c
@@ -246,7 +246,7 @@ ExtensionReply (FD fd, const unsigned char *buf,
if (decode_reply != NULL) {
decode_reply(fd, buf, RequestMinor);
} else {
- warn("Extended reply opcode");
+ UnknownReply(buf);
}
}
@@ -262,7 +262,7 @@ ExtensionError (FD fd, const unsigned char *buf, short Error)
if (decode_error != NULL) {
decode_error(fd, buf);
} else {
- warn("Extended Error code");
+ UnknownError(buf);
}
}
@@ -278,6 +278,6 @@ ExtensionEvent (FD fd, const unsigned char *buf, short Event)
if (decode_event != NULL) {
decode_event(fd, buf);
} else {
- warn("Extended Event code");
+ UnknownEvent(buf);
}
}