diff options
author | David Shah <dave@ds0.me> | 2018-12-06 10:51:17 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2018-12-06 10:51:17 +0000 |
commit | dbaabae23594dc3ac058abeb9f3de2db756a4636 (patch) | |
tree | ce2d33e1bd9815fdaf5e6d14aa515d57463f800d | |
parent | d298687dc2472e3afd2b19979719658b5eba3132 (diff) | |
download | nextpnr-dbaabae23594dc3ac058abeb9f3de2db756a4636.tar.gz nextpnr-dbaabae23594dc3ac058abeb9f3de2db756a4636.tar.bz2 nextpnr-dbaabae23594dc3ac058abeb9f3de2db756a4636.zip |
ice40: Put debug logging behind ctx->debug
Signed-off-by: David Shah <dave@ds0.me>
-rw-r--r-- | ice40/chains.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ice40/chains.cc b/ice40/chains.cc index 3ef367f1..b3b54d6b 100644 --- a/ice40/chains.cc +++ b/ice40/chains.cc @@ -134,11 +134,13 @@ class ChainConstrainer // Find the user corresponding to the next CIN int replaced_ports = 0; - log_info("cell: %s\n", cin_cell->name.c_str(ctx)); + if (ctx->debug) + log_info("cell: %s\n", cin_cell->name.c_str(ctx)); for (auto port : {id_CIN, id_I3}) { auto &usr = lc->ports.at(id_O).net->users; - for (auto user : usr) - log_info("%s.%s\n", user.cell->name.c_str(ctx), user.port.c_str(ctx)); + if (ctx->debug) + for (auto user : usr) + log_info("%s.%s\n", user.cell->name.c_str(ctx), user.port.c_str(ctx)); auto fnd_user = std::find_if(usr.begin(), usr.end(), [&](const PortRef &pr) { return pr.cell == cin_cell && pr.port == port; }); if (fnd_user != usr.end()) { |