ip-link: fix column alignment

Width is the maximum number of characters used for the value, excluding a
field separator. So append a single whitespace.
This commit is contained in:
Christian Hesse 2014-11-03 08:21:11 +01:00 committed by Stephen Hemminger
parent 1e264abc3a
commit f4fe81d26c
1 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ static void print_num(FILE *fp, unsigned width, uint64_t count)
char buf[64]; char buf[64];
if (!human_readable || count < base) { if (!human_readable || count < base) {
fprintf(fp, "%-*"PRIu64, width, count); fprintf(fp, "%-*"PRIu64" ", width, count);
return; return;
} }