Skip to content

Commit 8d34e3f

Browse files
lima-limon-incnavi-desu
authored andcommitted
Expand minimum padding to 26 in rc-update
Originally, rc-update displayed service names with a padding of 20 characters. However, some services like "systemd-tmpfiles-setup-dev" required longer padding and caused the displayed service table to be missaligned. Therefore, padding is increased to 26 characters. Bug: #937 Signed-off-by: Tomas Fabrizio Orsi <[email protected]>
1 parent d67595b commit 8d34e3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rc-update/rc-update.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ show(RC_STRINGLIST *runlevels, bool verbose)
191191
}
192192

193193
if (inone || verbose) {
194-
printf(" %20s |", service->value);
194+
/* For more information on why padding is 26, see issue 937: */
195+
/* https://github.com/OpenRC/openrc/issues/937 */
196+
printf(" %26s |", service->value);
195197
TAILQ_FOREACH(runlevel, in, entries)
196198
printf (" %s", runlevel->value);
197199
printf("\n");

0 commit comments

Comments
 (0)