Skip to content

Commit

Permalink
[core] fixed some bugs in debugging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tangxifan committed Aug 17, 2023
1 parent d7c3668 commit 414f737
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openfpga/src/annotation/fabric_tile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ bool FabricTile::register_tile_in_lookup(const FabricTileId& tile_id,
}
/* Throw error if this coord is already registered! */
if (tile_coord2id_lookup_[coord.x()][coord.y()]) {
VTR_LOG_ERROR("Tile at [%lu][%lu] has already been registered!\n");
VTR_LOG_ERROR("Tile at [%lu][%lu] has already been registered!\n", coord.x(), coord.y());
return false;
}
tile_coord2id_lookup_[coord.x()][coord.y()] = tile_id;
Expand All @@ -401,7 +401,7 @@ bool FabricTile::register_pb_in_lookup(const FabricTileId& tile_id,
/* Throw error if this coord is already registered! */
if (pb_coord2id_lookup_[coord.x()][coord.y()]) {
VTR_LOG_ERROR(
"Programmable block at [%lu][%lu] has already been registered!\n");
"Programmable block at [%lu][%lu] has already been registered!\n", coord.x(), coord.y());
return false;
}
pb_coord2id_lookup_[coord.x()][coord.y()] = tile_id;
Expand Down Expand Up @@ -429,7 +429,7 @@ bool FabricTile::register_cbx_in_lookup(const FabricTileId& tile_id,
if (cbx_coord2id_lookup_[coord.x()][coord.y()]) {
VTR_LOG_ERROR(
"X-direction connection block at [%lu][%lu] has already been "
"registered!\n");
"registered!\n", coord.x(), coord.y());
return false;
}
cbx_coord2id_lookup_[coord.x()][coord.y()] = tile_id;
Expand Down Expand Up @@ -457,7 +457,7 @@ bool FabricTile::register_cby_in_lookup(const FabricTileId& tile_id,
if (cby_coord2id_lookup_[coord.x()][coord.y()]) {
VTR_LOG_ERROR(
"Y-direction connection block at [%lu][%lu] has already been "
"registered!\n");
"registered!\n", coord.x(), coord.y());
return false;
}
cby_coord2id_lookup_[coord.x()][coord.y()] = tile_id;
Expand All @@ -483,7 +483,7 @@ bool FabricTile::register_sb_in_lookup(const FabricTileId& tile_id,
}
/* Throw error if this coord is already registered! */
if (sb_coord2id_lookup_[coord.x()][coord.y()]) {
VTR_LOG_ERROR("Switch block at [%lu][%lu] has already been registered!\n");
VTR_LOG_ERROR("Switch block at [%lu][%lu] has already been registered!\n", coord.x(), coord.y());
return false;
}
sb_coord2id_lookup_[coord.x()][coord.y()] = tile_id;
Expand Down

0 comments on commit 414f737

Please sign in to comment.