summaryrefslogtreecommitdiff
path: root/src/initctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-25 19:49:23 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-25 19:50:06 +0200
commit4cf5d6750704bb393b0d5dcb5ed4657810cff783 (patch)
tree3599443aab137851cd6f31fcaa5791d5f9d3e752 /src/initctl.c
parent50f74deea32476c3e19cda870857782576587d94 (diff)
downloadsystemd-4cf5d6750704bb393b0d5dcb5ed4657810cff783.tar.gz
dbus: simplify some dbus error messages a bit
Diffstat (limited to 'src/initctl.c')
-rw-r--r--src/initctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/initctl.c b/src/initctl.c
index 7b478a75d5..12b0e894fe 100644
--- a/src/initctl.c
+++ b/src/initctl.c
@@ -124,7 +124,7 @@ static void change_runlevel(Server *s, int runlevel) {
}
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;
}