forked from M-Labs/artiq
firmware: fix routing table formatting
This commit is contained in:
parent
b38c57d73b
commit
f5b386c0d8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue