X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Finitctl.c;h=12b0e894fe6cc33e5d0f56cd9c5e50e9d22f1841;hp=115452e86b445e4d615a0e9b6b8db239215bba5e;hb=dd6c17b1595ff8a78ebae6cf571fd222c80bfd17;hpb=2396fb04f78eaa9842c747e384218f0069446960 diff --git a/src/initctl.c b/src/initctl.c index 115452e86..12b0e894f 100644 --- a/src/initctl.c +++ b/src/initctl.c @@ -119,12 +119,12 @@ static void change_runlevel(Server *s, int runlevel) { DBUS_TYPE_STRING, &target, DBUS_TYPE_STRING, &replace, DBUS_TYPE_INVALID)) { - log_error("Could not attach target and flag information to signal message."); + log_error("Could not attach target and flag information to message."); goto finish; } if (!(reply = dbus_connection_send_with_reply_and_block(s->bus, m, -1, &error))) { - log_error("Failed to start unit: %s", error.message); + log_error("Failed to start unit: %s", bus_error_message(&error)); goto finish; } @@ -298,7 +298,7 @@ static int server_init(Server *s, unsigned n_sockets) { } if (bus_connect(DBUS_BUS_SYSTEM, &s->bus, NULL, &error) < 0) { - log_error("Failed to get D-Bus connection: %s", error.message); + log_error("Failed to get D-Bus connection: %s", bus_error_message(&error)); goto fail; }