diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-21 11:02:00 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-09-06 23:22:42 -0700 |
commit | 7009044c7968ec86a6b3b320ccca2c6ed9c9924c (patch) | |
tree | 6c6e659dfe43f991443f73ac1cb486f977fbe646 | |
parent | df0cb3bfd76afa43a6b51c42dc5965c7c629ba1e (diff) |
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"); @@ -743,6 +743,9 @@ PrintList(const unsigned char *buf, long n; long sum; + if (Verbose == 0) + return (0); + if (number == 0) return (0); |