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)
Oct 16 2024, 8:29 AM
Unknown Object (File)
Oct 16 2024, 8:29 AM
Unknown Object (File)
Oct 16 2024, 8:29 AM
Unknown Object (File)
Oct 16 2024, 8:06 AM
Unknown Object (File)
Sep 22 2024, 11:05 PM
Unknown Object (File)
Sep 18 2024, 6:44 AM
Unknown Object (File)
Sep 18 2024, 1:19 AM
Unknown Object (File)
Sep 14 2024, 10:05 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