From 7a6dcd15273abc8cf7dac9aa8826f994e070603b Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sat, 21 Jun 2014 17:59:56 +0200 Subject: [PATCH] Correctly print the margin in error messages. Suppress annoying CR. --- mauka/src/Surface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mauka/src/Surface.cpp b/mauka/src/Surface.cpp index 47871035..0c7ff6fa 100644 --- a/mauka/src/Surface.cpp +++ b/mauka/src/Surface.cpp @@ -485,7 +485,7 @@ typedef list PlacementProblemList; ); } if (_margin < 0.15) - cerr << Warning("Low margin %d, may not be able to complete successfully",_margin) << endl; + cerr << Warning("Low margin %f, may not be able to complete successfully",_margin) << endl; _computeCapacity(); } @@ -704,7 +704,7 @@ void Surface::_DisplayInstances(MaukaEngine::UVector& instanceids, SubRowList& s if (srlit == subrowlist.end()) { - if ( cmess2.enabled() ) cerr << "\n"; + //if ( cmess2.enabled() ) cerr << "\n"; cerr << Warning("Mauka::_DisplayInstances(): Cannot honor Bin margin, bypassing.") << endl; srlit = subrowlist.begin();