Skip to content

Commit 51bcfd5

Browse files
committed
solve seg fault error
1 parent d0642f2 commit 51bcfd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/route/segment_stats.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void get_segment_usage_stats(std::vector<t_segment_inf>& segment_inf) {
107107
if (directed_cap_by_length[ax][length] != 0) {
108108
std::string length_str = (length == LONGLINE) ? "longline" : std::to_string(length);
109109
utilization = (float)directed_occ_by_length[ax][length] / (float)directed_cap_by_length[ax][length];
110-
VTR_LOG(" %s %11.3g\n", length, utilization);
110+
VTR_LOG(" %s %11.3g\n", length_str.c_str(), utilization);
111111
}
112112
}
113113
}

0 commit comments

Comments
 (0)