Page MenuHomeFreeBSD

locks: Use %p to print uintptr_t values
ClosedPublic

Authored by jhb on Oct 30 2024, 6:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 19, 5:54 PM
Unknown Object (File)
Thu, Nov 6, 1:38 AM
Unknown Object (File)
Thu, Nov 6, 1:35 AM
Unknown Object (File)
Thu, Nov 6, 1:34 AM
Unknown Object (File)
Wed, Nov 5, 11:53 PM
Unknown Object (File)
Oct 31 2025, 7:16 PM
Unknown Object (File)
Oct 27 2025, 11:50 PM
Unknown Object (File)
Oct 24 2025, 6:04 AM
Subscribers

Details

Summary

Pointers are not the same shape as sizes on CHERI architectures. Cast
to void * and print with %p instead.

Obtained from: CheriBSD

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Oct 30 2024, 6:23 PM

(Alternatively, one could use the ugly PRIxPTR macro in place of the zx)

This revision was not accepted when it landed; it landed in state Needs Review.Nov 14 2024, 2:59 PM
This revision was automatically updated to reflect the committed changes.