From 27be9a6b77fb59bfd2b8f63961572ec1d25fd67a Mon Sep 17 00:00:00 2001 From: Larry Doolittle Date: Fri, 10 Jan 2025 14:03:09 -0800 Subject: [PATCH] keep_hierarchy.cc: use strictly correct syntax for printf of uint64_t values Removes two warnings from the compile, at least on amd64 arch --- passes/hierarchy/keep_hierarchy.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/passes/hierarchy/keep_hierarchy.cc b/passes/hierarchy/keep_hierarchy.cc index bfae9fa38..9d77b5239 100644 --- a/passes/hierarchy/keep_hierarchy.cc +++ b/passes/hierarchy/keep_hierarchy.cc @@ -17,6 +17,7 @@ * */ +#include #include "kernel/yosys.h" #include "kernel/cost.h" @@ -66,7 +67,7 @@ struct ThresholdHierarchyKeeping { } if (size > threshold) { - log("Keeping %s (estimated size above threshold: %llu > %llu).\n", log_id(module), size, threshold); + log("Keeping %s (estimated size above threshold: %" PRIu64 " > %" PRIu64 ").\n", log_id(module), size, threshold); module->set_bool_attribute(ID::keep_hierarchy); size = 0; }