mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 14:07:39 +00:00
STABLE14-rxdebug-unsigned-20040403
use unsigned types when displaying stat data via printf (cherry picked from commit 15d82b857efc21fd80f250d2f315e12f8b20db2a)
This commit is contained in:
parent
f86ffcef2d
commit
4632eedcf3
@ -459,10 +459,10 @@ MainCommand(as, arock)
|
||||
((afs_uint32) tconn.secStats.expires -
|
||||
time(0)) / 3600.0);
|
||||
if (!(flags & 1)) {
|
||||
printf("\n Received %d bytes in %d packets\n",
|
||||
printf("\n Received %u bytes in %u 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
|
||||
@ -553,15 +553,15 @@ MainCommand(as, arock)
|
||||
ntohs(tpeer.port));
|
||||
printf("\tifMTU %hu\tnatMTU %hu\tmaxMTU %hu\n", tpeer.ifMTU,
|
||||
tpeer.natMTU, tpeer.maxMTU);
|
||||
printf("\tpackets sent %d\tpacket resends %d\n", tpeer.nSent,
|
||||
printf("\tpackets sent %u\tpacket resends %u\n", tpeer.nSent,
|
||||
tpeer.reSends);
|
||||
printf("\tbytes sent high %d low %d\n", tpeer.bytesSent.high,
|
||||
printf("\tbytes sent high %u low %u\n", tpeer.bytesSent.high,
|
||||
tpeer.bytesSent.low);
|
||||
printf("\tbytes received high %d low %d\n",
|
||||
printf("\tbytes received high %u low %u\n",
|
||||
tpeer.bytesReceived.high, tpeer.bytesReceived.low);
|
||||
printf("\trtt %d msec, rtt_dev %d msec\n", tpeer.rtt >> 3,
|
||||
printf("\trtt %u msec, rtt_dev %u msec\n", tpeer.rtt >> 3,
|
||||
tpeer.rtt_dev >> 2);
|
||||
printf("\ttimeout %d.%03d sec\n", tpeer.timeout.sec,
|
||||
printf("\ttimeout %u.%03u sec\n", tpeer.timeout.sec,
|
||||
tpeer.timeout.usec / 1000);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user