diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-25 19:49:23 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-25 19:50:06 +0200 |
commit | 4cf5d6750704bb393b0d5dcb5ed4657810cff783 (patch) | |
tree | 3599443aab137851cd6f31fcaa5791d5f9d3e752 /src/initctl.c | |
parent | 50f74deea32476c3e19cda870857782576587d94 (diff) | |
download | systemd-4cf5d6750704bb393b0d5dcb5ed4657810cff783.tar.gz |
dbus: simplify some dbus error messages a bit
Diffstat (limited to 'src/initctl.c')
-rw-r--r-- | src/initctl.c | 4 |
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; } |