Page MenuHomeFreeBSD

lockstat: Fix construction of comparision predicates
ClosedPublic

Authored by kd on Jul 1 2022, 1:10 PM.

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
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.