]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: remove extra padding from status output
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 9 Jun 2013 18:02:32 +0000 (14:02 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 9 Jun 2013 18:31:17 +0000 (14:31 -0400)
commit856323c9cb0ef368367126588d0b43b4846ab0d7
tree98b353da2ca8046a2bf3b1cbce750920caa2f94b
parent31f7bf1994523f5b8fd014c69b97e09d7043d9ff
systemctl: remove extra padding from status output

In 131601349 'systemctl: align all status fields to common column',
padding was calculated for 'ListenStream: ...', etc. Later on in
45a4f7233 'systemctl: tweak output of Listen: fields a bit' output
was changed to 'Listen: ... (stream)', but calculation didn't change.

Just remove the calculation, since now the result will be always 8,
and it it more important to have everything aligned to the widest
field ("Main-PID"), than to save a few columns, usually at most two
(e.g. "Listen").

Note: strlen is more natural, and is optimized to sizeof even
with -O0.
src/systemctl/systemctl.c