Skip to content

Commit 6f62c9d

Browse files
committed
gpl: fix bug
Signed-off-by: LucasYuki <[email protected]>
1 parent 4bf8123 commit 6f62c9d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/gpl/src/routeBase.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,12 +738,16 @@ std::pair<bool, bool> RouteBase::routability(
738738

739739
// max density detection
740740
if (nbVec_[i]->getTargetDensity() > rbVars_.maxDensity) {
741+
string group_text;
742+
if (nbVec_[i]->group()) {
743+
group_text = " in group " + string(nbVec_[i]->group()->getName());
744+
}
741745
log_->info(GPL,
742746
53,
743-
"Target density {:.4f} exceeds the maximum allowed {:.4f} in group {}.",
747+
"Target density {:.4f} exceeds the maximum allowed {:.4f}{}.",
744748
nbVec_[i]->getTargetDensity(),
745749
rbVars_.maxDensity,
746-
nbVec_[i]->group()->getName());
750+
group_text);
747751

748752
revertToMinCongestion();
749753
return std::make_pair(false, true);

0 commit comments

Comments
 (0)