Skip to content

Commit

Permalink
keep_hierarchy.cc: use strictly correct syntax for printf of uint64_t…
Browse files Browse the repository at this point in the history
… values

Removes two warnings from the compile, at least on amd64 arch
  • Loading branch information
ldoolitt committed Jan 10, 2025
1 parent 7e3990b commit 27be9a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion passes/hierarchy/keep_hierarchy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*
*/

#include <inttypes.h>
#include "kernel/yosys.h"
#include "kernel/cost.h"

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 27be9a6

Please sign in to comment.