diff options
author | Isaac Bosompem <mrisaacb@google.com> | 2023-01-16 15:54:21 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-01-18 19:27:41 +0000 |
commit | 4c0a54fc364dba6c7553f83a4c9dc8b6bd3c9ed5 (patch) | |
tree | 17151cec302466b5e3fe4f16c1d3ec4388a76795 /src/tool | |
parent | a32d6071e15a6fc2019ff34f7914e3fe17f24385 (diff) | |
download | mesa-4c0a54fc364dba6c7553f83a4c9dc8b6bd3c9ed5.tar.gz mesa-4c0a54fc364dba6c7553f83a4c9dc8b6bd3c9ed5.tar.bz2 mesa-4c0a54fc364dba6c7553f83a4c9dc8b6bd3c9ed5.zip |
tool/pps: Fix 32-bit build issue with format string
Fixes a 32-bit build issue with Perfetto enabled.
Move the printf format specifier to use PRIx64 which
will be consistent regardless of the build type.
Signed-Off By: Isaac Bosompem <mrisaacb@google.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20732>
Diffstat (limited to 'src/tool')
-rw-r--r-- | src/tool/pps/pps_datasource.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool/pps/pps_datasource.cc b/src/tool/pps/pps_datasource.cc index c7bd4caba36..9242a403fdd 100644 --- a/src/tool/pps/pps_datasource.cc +++ b/src/tool/pps/pps_datasource.cc @@ -14,6 +14,7 @@ #include <condition_variable> #include <thread> #include <variant> +#include <inttypes.h> // Minimum supported sampling period in nanoseconds #define MIN_SAMPLING_PERIOD_NS 50000 @@ -316,7 +317,7 @@ void GpuDataSource::trace(TraceContext &ctx) } if (!got_first_counters) { - PPS_LOG("Got first counters at gpu_ts=0x%016lx", gpu_timestamp); + PPS_LOG("Got first counters at gpu_ts=0x%016" PRIx64, gpu_timestamp); got_first_counters = true; } |