]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
core: fix message about show status state
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 28 Feb 2020 21:49:19 +0000 (22:49 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 1 Mar 2020 10:42:12 +0000 (11:42 +0100)
commit5ca02bfc39685ffa62aa46533f951bd8ede89082
treec72384aa4ce86dbf51277da7438aa1f4c0bac8a1
parent07336a067216f3e5d7551b090c5972c120805d0e
core: fix message about show status state

We would say "Enabling" also for SHOW_STATUS_AUTO, which is actually
"soft off". So just print the exact state to make things easier to understand.
Also add a helper function to avoid repeating the enum value list.

For #14814.
src/core/main.c
src/core/manager.c
src/core/show-status.h