]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Print rxdebug statistics as unsigned values
authorMarc Dionne <marc.c.dionne@gmail.com>
Wed, 24 Mar 2010 23:29:28 +0000 (19:29 -0400)
committerRuss Allbery <rra@debian.org>
Fri, 26 Mar 2010 19:28:30 +0000 (12:28 -0700)
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 <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit a123d4ab988c6a8cc51b864ea1d02a70b2770bf3)

src/rxdebug/rxdebug.c

index 40e84bc9cb35ff09ac6d4bca72aecea546c082f1..9bb1ff353e0035feec7644572c7bccd28a7060d9 100644 (file)
@@ -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