Page MenuHomeFreeBSD

lockstat: Fix construction of comparision predicates
ClosedPublic

Authored by kd on Jul 1 2022, 1:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 23, 2:39 AM
Unknown Object (File)
Sat, Jan 18, 9:49 PM
Unknown Object (File)
Mon, Jan 6, 7:27 PM
Unknown Object (File)
Dec 14 2024, 1:13 AM
Unknown Object (File)
Dec 13 2024, 7:29 AM
Unknown Object (File)
Nov 4 2024, 10:22 AM
Unknown Object (File)
Nov 4 2024, 10:08 AM
Unknown Object (File)
Oct 2 2024, 2:35 AM
Subscribers

Details

Summary

Passing "0x%p" to sprintf results in double "0x" being printed.
This causes a dtrace script compilation failure when "-d" flag is specified:

(...)
/(self->ev32[(uintptr_t)arg0]) && (timestamp -
            self->ev32[(uintptr_t)arg0] >= 0x0x64)/
(...)
lockstat: ^^^^ D program ^^^^
lockstat: failed to compile program: syntax error near "x64"

Diff Detail

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