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)
Thu, Nov 14, 3:08 PM
Unknown Object (File)
Thu, Nov 7, 6:43 AM
Unknown Object (File)
Thu, Nov 7, 4:31 AM
Unknown Object (File)
Wed, Nov 6, 7:07 PM
Unknown Object (File)
Tue, Nov 5, 9:02 PM
Unknown Object (File)
Nov 4 2024, 6:24 AM
Unknown Object (File)
Nov 1 2024, 10:41 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60266
Build 57150: arc lint + arc unit

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.Thu, Nov 14, 2:59 PM
This revision was automatically updated to reflect the committed changes.