Avoid padding the value of "ucomm" when it is the last column in the line.
Submitted by: Cyrille Lefevre
This commit is contained in:
parent
820434b27f
commit
4e8a8d9f85
@ -180,6 +180,9 @@ ucomm(KINFO *k, VARENT *ve)
|
|||||||
VAR *v;
|
VAR *v;
|
||||||
|
|
||||||
v = ve->var;
|
v = ve->var;
|
||||||
|
if (ve->next == NULL) /* last field, don't pad */
|
||||||
|
(void)printf("%s", k->ki_p->ki_comm);
|
||||||
|
else
|
||||||
(void)printf("%-*s", v->width, k->ki_p->ki_comm);
|
(void)printf("%-*s", v->width, k->ki_p->ki_comm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user