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
F133240271: D47342.id146445.diff
Fri, Oct 24, 6:04 AM
Unknown Object (File)
Sat, Oct 18, 7:21 PM
Unknown Object (File)
Fri, Sep 26, 11:36 PM
Unknown Object (File)
Sep 11 2025, 3:17 PM
Unknown Object (File)
Sep 6 2025, 12:47 PM
Unknown Object (File)
Sep 6 2025, 12:28 PM
Unknown Object (File)
Sep 5 2025, 8:49 AM
Unknown Object (File)
Sep 5 2025, 4:50 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.