From e9275360991c65820d58a5fb40a10f02b037c1da Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 27 Aug 2024 07:27:59 -0400 Subject: [PATCH] Reduce --debugi 2 verbosity --- src/V3Error.cpp | 2 +- src/V3PreShell.cpp | 2 +- src/V3TSP.cpp | 4 ++-- src/V3Width.cpp | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/V3Error.cpp b/src/V3Error.cpp index f5b77e179..60164e66c 100644 --- a/src/V3Error.cpp +++ b/src/V3Error.cpp @@ -123,7 +123,7 @@ void V3ErrorGuarded::v3errorEnd(std::ostringstream& sstr, const string& extra) // Skip suppressed messages if (m_errorSuppressed // On debug, show only non default-off warning to prevent pages of warnings - && (!debug() || m_errorCode.defaultsOff())) + && (!debug() || debug() < 3 || m_errorCode.defaultsOff())) return; string msg = msgPrefix() + sstr.str(); // If suppressed print only first line to reduce verbosity diff --git a/src/V3PreShell.cpp b/src/V3PreShell.cpp index 6a1372b59..2b02b658d 100644 --- a/src/V3PreShell.cpp +++ b/src/V3PreShell.cpp @@ -87,7 +87,7 @@ protected: bool preproc(FileLine* fl, const string& modname, VInFilter* filterp, V3ParseImp* parsep, const string& errmsg) { // "" for no error // Preprocess the given module, putting output in vppFilename - UINFONL(1, " Preprocessing " << modname << endl); + UINFO(1, "Preprocessing " << modname << endl); // Preprocess s_filterp = filterp; diff --git a/src/V3TSP.cpp b/src/V3TSP.cpp index db7f72c02..f47ae2e28 100644 --- a/src/V3TSP.cpp +++ b/src/V3TSP.cpp @@ -377,8 +377,8 @@ public: } UINFO(6, "Tour was: "); - for (const Vertex* vxp : tour) UINFONL(6, " " << vxp->key()); - UINFONL(6, "\n"); + for (const Vertex* vxp : tour) UINFONL(6, "- " << vxp->key()); + UINFONL(6, "-\n"); } void dumpGraph(std::ostream& os, const string& nameComment) const { diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 835c7638b..a2b7b398d 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -5033,17 +5033,17 @@ class WidthVisitor final : public VNVisitor { assertAtStatement(nodep); // if (debug()) nodep->dumpTree("- AssignPre: "); { - if (debug()) nodep->dumpTree("- assin:: "); + // if (debug()) nodep->dumpTree("- assin:: "); userIterateAndNext(nodep->lhsp(), WidthVP{SELF, BOTH}.p()); UASSERT_OBJ(nodep->lhsp()->dtypep(), nodep, "How can LHS be untyped?"); UASSERT_OBJ(nodep->lhsp()->dtypep()->widthSized(), nodep, "How can LHS be unsized?"); nodep->dtypeFrom(nodep->lhsp()); // // AstPattern needs to know the proposed data type of the lhs, so pass on the prelim - if (debug()) nodep->dumpTree("- assrhs: "); + // if (debug()) nodep->dumpTree("- assrhs: "); userIterateAndNext(nodep->rhsp(), WidthVP{nodep->dtypep(), PRELIM}.p()); // - if (debug()) nodep->dumpTree("- assign: "); + // if (debug()) nodep->dumpTree("- assign: "); AstNodeDType* const lhsDTypep = nodep->lhsp()->dtypep(); // Note we use rhsp for context determined iterateCheckAssign(nodep, "Assign RHS", nodep->rhsp(), FINAL, lhsDTypep); @@ -7115,7 +7115,7 @@ class WidthVisitor final : public VNVisitor { << " (IEEE 1800-2023 6.19.3)\n" << nodep->warnMore() << "... Suggest use enum's mnemonic, or static cast"); - if (debug()) nodep->backp()->dumpTree("- back: "); + // if (debug()) nodep->backp()->dumpTree("- back: "); } } AstNodeDType* subDTypep = expDTypep;