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 <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to