From d201ce40a0e643371076f823a1847cee4474cff0 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 9 Feb 2020 18:08:19 -0500 Subject: [PATCH] Use newer warning format. --- src/V3Order.cpp | 29 +++++++++------------ test_regress/t/t_unoptflat_simple_2_bad.out | 10 +++---- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/src/V3Order.cpp b/src/V3Order.cpp index f594320b9..1644f14c8 100644 --- a/src/V3Order.cpp +++ b/src/V3Order.cpp @@ -893,8 +893,7 @@ private: m_graph.userClearVertices(); // May be very large vector, so only report the "most important" // elements. Up to 10 of the widest - std::cerr< canSplitList; int lim = m_unoptflatVars.size() < 10 ? m_unoptflatVars.size() : 10; @@ -902,19 +901,18 @@ private: OrderVarStdVertex* vsvertexp = m_unoptflatVars[i]; AstVar* varp = vsvertexp->varScp()->varp(); const bool canSplit = V3SplitVar::canSplitVar(varp); - std::cerr<fileline()<<" "<prettyName()<width()<<", fanout " - <fanout(); + std::cerr << V3Error::warnMore() << " " << varp->fileline() << " " + << varp->prettyName() << std::dec << ", width " << varp->width() + << ", fanout " << vsvertexp->fanout(); if (canSplit) { - std::cerr <<", can be split"; + std::cerr <<", can split_var"; canSplitList.insert(varp); } std::cerr << std::endl; } // Up to 10 of the most fanned out - std::cerr<varScp()->varp(); const bool canSplit = V3SplitVar::canSplitVar(varp); - std::cerr<fileline()<<" "<prettyName() - <<", width "<width() - <<", fanout "<fanout(); + std::cerr << V3Error::warnMore() << " " << varp->fileline() << " " + << varp->prettyName() << ", width " << std::dec << varp->width() + << ", fanout " << vsvertexp->fanout(); if (canSplit) { - std::cerr<<", can be split"; + std::cerr << ", can split_var"; canSplitList.insert(varp); } std::cerr<