Skip to content

Commit

Permalink
common/common.c: open_sdbus_once(): use prettier sd_bus_open_system_w…
Browse files Browse the repository at this point in the history
…ith_description() for better journal logging [networkupstools#1070]

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Aug 19, 2024
1 parent 8a4c6ea commit 2cc4042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ static int open_sdbus_once(const char *caller) {
if (systemd_bus)
return r;

r = sd_bus_open_system(&systemd_bus);
r = sd_bus_open_system_with_description(&systemd_bus, "Bus connection for Network UPS Tools sleep/suspend/hibernate handling");
if (r < 0 || !systemd_bus) {
if (r >= 0) {
if (!faultReported)
Expand Down

0 comments on commit 2cc4042

Please sign in to comment.