HomeFreeBSD

clkdom_dump(): improve output text

Description

clkdom_dump(): improve output text

If the call to clknode_get_freq() returns an error (unlikely), report
this, rather than printing the error code as the clock frequency.

If the clock has no parent (e.g. a fixed reference clock), print "none"
rather than "(NULL)(-1)". This is a more human-legible presentation of the
same information.

Reviewed by: manu
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44267

Details

Provenance
mhorneAuthored on Mar 8 2024, 2:09 PM
Reviewer
manu
Differential Revision
D44267: clkdom_dump(): improve output text
Parents
rG1cb9f6f6413e: clk_fixed: quiet by default
Branches
Unknown
Tags
Unknown