Skip to content

Commit d3a5046

Browse files
committed
Got rid of line printing std::string block_name to fix compiler warning
1 parent 7e4fb4a commit d3a5046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/base/read_place.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,11 @@ void read_place_body(std::ifstream& placement_file,
225225
auto physical_tile = device_ctx.grid[block_x][block_y].type;
226226
auto logical_block = cluster_ctx.clb_nlist.block_type(blk_id);
227227
if (!is_sub_tile_compatible(physical_tile, logical_block, place_ctx.block_locs[blk_id].loc.sub_tile)) {
228-
VPR_THROW(VPR_ERROR_PLACE, place_file, 0, "Attempt to place block %s at illegal location (%d, %d). \n", block_name, block_x, block_y);
228+
VPR_THROW(VPR_ERROR_PLACE, place_file, 0, "Attempt to place block %d at illegal location (%d, %d). \n", blk_id, block_x, block_y);
229229
}
230230

231231
if (sub_tile_index >= physical_tile->capacity || sub_tile_index < 0) {
232-
VPR_THROW(VPR_ERROR_PLACE, place_file, vtr::get_file_line_number_of_last_opened_file(), "Block %s subtile number (%d) is out of range. \n", block_name, sub_tile_index);
232+
VPR_THROW(VPR_ERROR_PLACE, place_file, vtr::get_file_line_number_of_last_opened_file(), "Block %d subtile number (%d) is out of range. \n", blk_id, sub_tile_index);
233233
}
234234

235235
//need to lock down blocks and mark grid block usage if it is a constraints file

0 commit comments

Comments
 (0)