diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-21 11:02:00 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-10-02 22:16:08 -0700 |
commit | d325cc4930d7e04bd09d54548c6dc58329cfc15b (patch) | |
tree | 1a71d0cb1ad7370a83fc346898baa6dbaecc067b | |
parent | 41692eb416df3bff1e5a10b8c71058248c5d9308 (diff) | |
download | xscope-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.c | 2 | ||||
-rw-r--r-- | prtype.c | 3 |
2 files changed, 5 insertions, 0 deletions
@@ -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"); @@ -749,6 +749,9 @@ PrintList(const unsigned char *buf, long i; long sum; + if (Verbose == 0) + return (0); + if (number == 0) return (0); |