forked from M-Labs/artiq
1
0
Fork 0

firmware: fix routing table formatting

This commit is contained in:
Sebastien Bourdeauducq 2018-09-11 18:22:45 +08:00
parent b38c57d73b
commit f5b386c0d8
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ impl fmt::Display for RoutingTable {
write!(f, "RoutingTable {{")?; write!(f, "RoutingTable {{")?;
for i in 0..DEST_COUNT { for i in 0..DEST_COUNT {
if self.0[i][0] != INVALID_HOP { if self.0[i][0] != INVALID_HOP {
write!(f, "{}:", i)?; write!(f, " {}:", i)?;
for j in 0..MAX_HOPS { for j in 0..MAX_HOPS {
if self.0[i][j] == INVALID_HOP { if self.0[i][j] == INVALID_HOP {
break; break;