Skip to content

Commit a2da0ee

Browse files
use msg member varible instead of msg local variable
1 parent 8b7780e commit a2da0ee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vpr/src/place/place_log_util.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,12 @@ void PlacementLogPrinter::print_post_placement_stats() const {
232232
*placer_.timing_info_->setup_analyzer(), "Placement estimated ", "");
233233
}
234234

235-
char msg[vtr::bufsize];
236-
sprintf(msg,
235+
sprintf(msg_.data(),
237236
"Placement. Cost: %g bb_cost: %g td_cost: %g Channel Factor: %d",
238237
placer_.costs_.cost, placer_.costs_.bb_cost, placer_.costs_.timing_cost, placer_.placer_opts_.place_chan_width);
239238
VTR_LOG("Placement cost: %g, bb_cost: %g, td_cost: %g, \n", placer_.costs_.cost,
240239
placer_.costs_.bb_cost, placer_.costs_.timing_cost);
241-
update_screen(ScreenUpdatePriority::MAJOR, msg, PLACEMENT, placer_.timing_info_);
240+
update_screen(ScreenUpdatePriority::MAJOR, msg_.data(), PLACEMENT, placer_.timing_info_);
242241

243242
// print the noc costs info
244243
if (placer_.noc_opts_.noc) {

0 commit comments

Comments
 (0)