]> git.ipfire.org Git - thirdparty/systemd.git/commit
manager: improve message about Reload/Reexec requests
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 8 Feb 2023 10:36:22 +0000 (11:36 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 8 Feb 2023 14:48:43 +0000 (15:48 +0100)
commit1980a25dc03aa500d4ee2725d696f68d265cd4ca
tree3ca894ed5b3d321bbd9a85947de06aeadd450784
parenta99bd455b59b7922a1b1af480b209263a4d3c659
manager: improve message about Reload/Reexec requests

If we fail to get the necessary information, let's just not print that
part of the message. 'n/a' looks pretty ugly.

I used a bunch of ternary operators instead of seperate log lines because
with two components that might or might not be there, we need four different
combinations.

Also, the unit name doesn't need to be quoted, it's always printable.
src/core/dbus-manager.c