From: Marc Dionne Date: Wed, 24 Mar 2010 23:29:28 +0000 (-0400) Subject: Print rxdebug statistics as unsigned values X-Git-Tag: debian/1.4.12+dfsg-3~2 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=90a8c95db0b77999e7161c2d4cb86499efcc2c84;p=packages%2Fo%2Fopenafs.git Print rxdebug statistics as unsigned values bytesSent and bytesReceived are unsigned. Print them as such to avoid printing negative numbers for large values. This is already the case in the master branch. Bug reported by jakllsch on IRC Change-Id: If2c5d9cfebf11691d73b3d6bfd73deb6b61ada8e Reviewed-on: http://gerrit.openafs.org/1657 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit a123d4ab988c6a8cc51b864ea1d02a70b2770bf3) --- diff --git a/src/rxdebug/rxdebug.c b/src/rxdebug/rxdebug.c index 40e84bc9c..9bb1ff353 100644 --- a/src/rxdebug/rxdebug.c +++ b/src/rxdebug/rxdebug.c @@ -449,7 +449,7 @@ MainCommand(struct cmd_syndesc *as, void *arock) printf("\n Received %d bytes in %d packets\n", tconn.secStats.bytesReceived, tconn.secStats.packetsReceived); - printf(" Sent %d bytes in %d packets\n", + printf(" Sent %u bytes in %u packets\n", tconn.secStats.bytesSent, tconn.secStats.packetsSent); } else