Commit 12031ce1 authored by Klaus Aehlig's avatar Klaus Aehlig
Browse files

Fix format string for gnt-network info

As soon as we have networks bigger than a /22, the lower
index of a line in the usage map can have 4 digits. So
prepare the formating for this.
Signed-off-by: default avatarKlaus Aehlig <>
Reviewed-by: default avatarHelga Velroyen <>
parent 40f3aa6f
......@@ -246,7 +246,7 @@ def ShowNetworkConfig(_, args):
idx = 0
while idx < lenmapping:
line = mapping[idx: idx + 64]
ToStdout(" %s %s %d", str(idx).rjust(3), line.ljust(64), idx + 63)
ToStdout(" %s %s %d", str(idx).rjust(4), line.ljust(64), idx + 63)
idx += 64
ToStdout(" (X) used (.) free")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment