From a39b9d4ef14802a43edb9f86ce439146582278ae Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 18 Sep 2008 09:30:44 -0700 Subject: [PATCH] Elaboration debug messages should depend on debug flag. The debug messages for the ternary were missing a conditional on the debug flag. --- elab_expr.cc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/elab_expr.cc b/elab_expr.cc index 8b322831b..66f32d50e 100644 --- a/elab_expr.cc +++ b/elab_expr.cc @@ -2211,9 +2211,10 @@ NetExpr*PETernary::elaborate_expr(Design*des, NetScope*scope, // Condition is constant TRUE, so we only need the true claue. if (cval.get(0) == verinum::V1) { - cerr << get_fileline() << ": debug: " - << "Short-circuit elaborate TRUE clause of ternary." - << endl; + if (debug_elaborate) + cerr << get_fileline() << ": debug: Short-circuit " + "elaborate TRUE clause of ternary." + << endl; NetExpr*tru = elab_and_eval(des, scope, tru_, expr_wid); return pad_to_width(tru, expr_wid); } @@ -2221,9 +2222,10 @@ NetExpr*PETernary::elaborate_expr(Design*des, NetScope*scope, // Condition is constant FALSE, so we only need the // false clause. if (cval.get(0) == verinum::V0) { - cerr << get_fileline() << ": debug: " - << "Short-circuit elaborate FALSE clause of ternary." - << endl; + if (debug_elaborate) + cerr << get_fileline() << ": debug: Short-circuit " + "elaborate FALSE clause of ternary." + << endl; NetExpr*fal = elab_and_eval(des, scope, fal_, expr_wid); return pad_to_width(fal, expr_wid); }