[PATCH:xscope 20/24] When Verbose == 0, don't print number of data items in unknown reply types
Alan Coopersmith
alan.coopersmith at oracle.com
Fri Aug 31 22:18:02 PDT 2012
We don't print any other data from packet when Verbose == 0, just had
a few random "data: (6)" type lines sneak through.
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
print11.c | 2 ++
prtype.c | 3 +++
2 files changed, 5 insertions(+)
diff --git a/print11.c b/print11.c
index b2b61fb..7935b84 100644
--- a/print11.c
+++ b/print11.c
@@ -955,6 +955,8 @@ UnknownReply(const unsigned char *buf)
long n;
PrintField(RBf, 0, 1, REPLY, REPLYHEADER);
+ if (Verbose < 1)
+ return;
PrintField(buf, 1, 1, CARD8, "data");
printfield(buf, 2, 2, CARD16, "sequence number");
printfield(buf, 4, 4, DVALUE4(n), "reply length");
diff --git a/prtype.c b/prtype.c
index 182e809..69cf505 100644
--- a/prtype.c
+++ b/prtype.c
@@ -743,6 +743,9 @@ PrintList(const unsigned char *buf,
long n;
long sum;
+ if (Verbose == 0)
+ return (0);
+
if (number == 0)
return (0);
--
1.7.9.2
More information about the xorg-devel
mailing list