From: David Tardon Date: Tue, 23 May 2023 18:33:16 +0000 (+0200) Subject: journalctl: convert a machine1.Manager call to BusLocator X-Git-Tag: v254-rc1~397^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=daecc5b95b9f4b79bf34626e174c1ec033167bed;p=thirdparty%2Fsystemd.git journalctl: convert a machine1.Manager call to BusLocator --- diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index b0b95311f1c..5f3a121ac9f 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -21,6 +21,7 @@ #include "alloc-util.h" #include "build.h" #include "bus-error.h" +#include "bus-locator.h" #include "bus-util.h" #include "catalog.h" #include "chase.h" @@ -2246,15 +2247,7 @@ static int run(int argc, char *argv[]) { if (r < 0) return log_error_errno(r, "Failed to open system bus: %m"); - r = sd_bus_call_method( - bus, - "org.freedesktop.machine1", - "/org/freedesktop/machine1", - "org.freedesktop.machine1.Manager", - "OpenMachineRootDirectory", - &error, - &reply, - "s", arg_machine); + r = bus_call_method(bus, bus_machine_mgr, "OpenMachineRootDirectory", &error, &reply, "s", arg_machine); if (r < 0) return log_error_errno(r, "Failed to open root directory: %s", bus_error_message(&error, r));