Skip to content

Commit 0f3f1cf

Browse files
authored
Merge pull request #4840 from ldoolitt/main
keep_hierarchy.cc: use strictly correct syntax for printf of uint64_t values
2 parents 9f7040b + 27be9a6 commit 0f3f1cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

passes/hierarchy/keep_hierarchy.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*
1818
*/
1919

20+
#include <inttypes.h>
2021
#include "kernel/yosys.h"
2122
#include "kernel/cost.h"
2223

@@ -66,7 +67,7 @@ struct ThresholdHierarchyKeeping {
6667
}
6768

6869
if (size > threshold) {
69-
log("Keeping %s (estimated size above threshold: %llu > %llu).\n", log_id(module), size, threshold);
70+
log("Keeping %s (estimated size above threshold: %" PRIu64 " > %" PRIu64 ").\n", log_id(module), size, threshold);
7071
module->set_bool_attribute(ID::keep_hierarchy);
7172
size = 0;
7273
}

0 commit comments

Comments
 (0)