summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-21 11:02:00 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-10-02 22:16:08 -0700
commitd325cc4930d7e04bd09d54548c6dc58329cfc15b (patch)
tree1a71d0cb1ad7370a83fc346898baa6dbaecc067b
parent41692eb416df3bff1e5a10b8c71058248c5d9308 (diff)
downloadxscope-d325cc4930d7e04bd09d54548c6dc58329cfc15b.tar.gz
When Verbose == 0, don't print number of data items in unknown reply types
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@oracle.com>
-rw-r--r--print11.c2
-rw-r--r--prtype.c3
2 files changed, 5 insertions, 0 deletions
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 b1ba8ce..5889b52 100644
--- a/prtype.c
+++ b/prtype.c
@@ -749,6 +749,9 @@ PrintList(const unsigned char *buf,
long i;
long sum;
+ if (Verbose == 0)
+ return (0);
+
if (number == 0)
return (0);