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; }