summaryrefslogtreecommitdiff
path: root/src/update-utmp.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/update-utmp.c
parent50f74deea32476c3e19cda870857782576587d94 (diff)
dbus: simplify some dbus error messages a bit
Diffstat (limited to 'src/update-utmp.c')
-rw-r--r--src/update-utmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/update-utmp.c b/src/update-utmp.c
index 336594fc7a..644b6df67c 100644
--- a/src/update-utmp.c
+++ b/src/update-utmp.c
@@ -77,7 +77,7 @@ static usec_t get_startup_time(Context *c) {
}
if (!(reply = dbus_connection_send_with_reply_and_block(c->bus, m, -1, &error))) {
- log_error("Failed to send command: %s", error.message);
+ log_error("Failed to send command: %s", bus_error_message(&error));
goto finish;
}
@@ -167,7 +167,7 @@ static int get_current_runlevel(Context *c) {
if (!dbus_message_get_args(reply, &error,
DBUS_TYPE_OBJECT_PATH, &path,
DBUS_TYPE_INVALID)) {
- log_error("Failed to parse reply: %s", error.message);
+ log_error("Failed to parse reply: %s", bus_error_message(&error));
r = -EIO;
goto finish;
}
@@ -194,7 +194,7 @@ static int get_current_runlevel(Context *c) {
dbus_message_unref(reply);
if (!(reply = dbus_connection_send_with_reply_and_block(c->bus, m, -1, &error))) {
- log_error("Failed to send command: %s", error.message);
+ log_error("Failed to send command: %s", bus_error_message(&error));
r = -EIO;
goto finish;
}
@@ -379,7 +379,7 @@ int main(int argc, char *argv[]) {
#endif
if (bus_connect(DBUS_BUS_SYSTEM, &c.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));
r = -EIO;
goto finish;
}