Page MenuHomeFreeBSD

Fix printing of 64-bit counters in systat on 32-bit ppc
ClosedPublic

Authored by tuexen on Nov 4 2018, 11:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 18, 6:09 AM
Unknown Object (File)
Fri, Jan 17, 3:59 PM
Unknown Object (File)
Fri, Jan 3, 8:25 AM
Unknown Object (File)
Tue, Dec 31, 10:20 AM
Unknown Object (File)
Mon, Dec 30, 4:42 PM
Unknown Object (File)
Dec 22 2024, 5:20 PM
Unknown Object (File)
Nov 17 2024, 3:41 AM
Unknown Object (File)
Nov 17 2024, 2:56 AM
Subscribers

Details

Summary

Several statistic counters are uint64_t values and are printed by systat using %lu. This results in displaying wrong numbers. Use PRIu64 instead.

While there, print variables of size_t using %zd.

Test Plan

Run systat -ip, systat -tcp, and so on on various platforms including ppc32, ppc64, i386 and amd64.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable