Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix printf format specifier for
memref_pid_t
(#6996)
The format specifier "%lld" used for `memref_pid_t` in printf statement may not be correct for all platform. `memref_pid_t` is `int64_t` which may be `signed long int`. `memref_pid_t` should not be print with "%lld" format specifier. Should use PRId64 defined in <inttypes.h> instead. Further details: distro: KDE Neon 6.0 gcc: (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 In "dynamorio/clients/drcachesim/common/memref.h":52 ``` typedef int64_t memref_pid_t; ``` In "/usr/include/x86_64-linux-gnu/bits/stdint-intn.h":27 ``` typedef __int64_t int64_t; ``` In "/usr/include/x86_64-linux-gnu/bits/types.h":44 ``` typedef signed long int __int64_t; ``` Co-authored-by: xdje42 <[email protected]>
- Loading branch information