Reduce verbosity under `--debug` default level

This commit is contained in:
Wilson Snyder 2025-01-25 16:01:10 -05:00
parent 70c6651aac
commit bdcfc4e286
2 changed files with 3 additions and 3 deletions

View File

@ -154,7 +154,7 @@ void V3ErrorGuarded::v3errorEnd(std::ostringstream& sstr, const string& extra)
}
// Suppress duplicate messages
if (!m_messages.insert(msg).second) return;
if (!extra.empty()) {
if (!extra.empty() && !m_errorSuppressed) {
const string extraMsg = warnMore() + extra + "\n";
const size_t pos = msg.find('\n');
msg.insert(pos + 1, extraMsg);

View File

@ -57,7 +57,7 @@ class UnrollVisitor final : public VNVisitor {
bool cantUnroll(AstNode* nodep, const char* reason) const {
if (m_generate)
nodep->v3warn(E_UNSUPPORTED, "Unsupported: Can't unroll generate for; " << reason);
UINFO(3, " Can't Unroll: " << reason << " :" << nodep << endl);
UINFO(4, " Can't Unroll: " << reason << " :" << nodep << endl);
// if (debug() >= 9) nodep->dumpTree("- cant: ");
V3Stats::addStatSum("Unrolling gave up, "s + reason, 1);
return false;
@ -210,7 +210,7 @@ class UnrollVisitor final : public VNVisitor {
SimulateVisitor simvis;
simvis.mainParamEmulate(clonep);
if (!simvis.optimizable()) {
UINFO(3, "Unable to simulate" << endl);
UINFO(4, "Unable to simulate" << endl);
if (debug() >= 9) nodep->dumpTree("- _simtree: ");
VL_DO_DANGLING(clonep->deleteTree(), clonep);
return false;