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)
Sun, Mar 22, 9:12 PM
Unknown Object (File)
Wed, Mar 18, 11:30 PM
Unknown Object (File)
Fri, Mar 13, 11:31 PM
Unknown Object (File)
Mon, Mar 9, 10:21 AM
Unknown Object (File)
Sun, Mar 8, 10:13 PM
Unknown Object (File)
Mar 1 2026, 4:38 AM
Unknown Object (File)
Feb 17 2026, 8:43 AM
Unknown Object (File)
Feb 8 2026, 6:41 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.