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)
Mon, Mar 24, 6:22 PM
Unknown Object (File)
Sun, Mar 23, 10:17 PM
Unknown Object (File)
Sun, Mar 23, 6:49 PM
Unknown Object (File)
Sun, Mar 23, 6:08 PM
Unknown Object (File)
Sun, Mar 23, 5:45 PM
Unknown Object (File)
Feb 28 2025, 7:27 PM
Unknown Object (File)
Feb 23 2025, 6:44 PM
Unknown Object (File)
Feb 22 2025, 7:48 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