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

(cherry picked from commit 08635c51d1e34f8a3e42c7cf35dc7264a5b68118)

Details

Provenance
mhorneAuthored on Mar 8 2024, 2:09 PM
Reviewer
manu
Differential Revision
D44267: clkdom_dump(): improve output text
Parents
rG9050a43e8e2c: intro.9: minor changes
Branches
Unknown
Tags
Unknown