From c7b622b7c0eed997c25e1962d8c16ec1120ca55a Mon Sep 17 00:00:00 2001 From: Matt Liberty Date: Wed, 2 Oct 2024 17:29:01 +0000 Subject: [PATCH] Fix non-portable print of int64_t (to be upstreamed) Signed-off-by: Matt Liberty --- power/SaifReader.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/power/SaifReader.cc b/power/SaifReader.cc index 3b6b2e0b..4dd46a98 100644 --- a/power/SaifReader.cc +++ b/power/SaifReader.cc @@ -17,6 +17,7 @@ #include "power/SaifReader.hh" #include +#include #include "Error.hh" #include "Debug.hh" @@ -182,7 +183,7 @@ SaifReader::setNetDurations(const char *net_name, double tc = durations[static_cast(SaifState::TC)]; float activity = tc / (duration_ * timescale_ / clk_period_); debugPrint(debug_, "read_saif", 2, - "%s duty %.0f / %llu = %.2f tc %.0f activity %.2f", + "%s duty %.0f / %" PRId64 " = %.2f tc %.0f activity %.2f", sdc_network_->pathName(pin), t1, duration_,