firmware: fix routing table formatting

This commit is contained in:
Sebastien Bourdeauducq 2018-09-11 18:22:45 +08:00
parent b38c57d73b
commit f5b386c0d8

View File

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