diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-06-27 23:15:30 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-06-27 23:15:30 +0200 |
commit | a2e5283217b9e1e636ab3272e8d36e724a78cf6a (patch) | |
tree | 0308004a121f51d79af6130d2dcc394947b203de /src/logind.c | |
parent | bf1009201de83bb8c511d3a40d6a499d57f0fda7 (diff) |
dbus: use bus_error_message() where applicable
Diffstat (limited to 'src/logind.c')
-rw-r--r-- | src/logind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logind.c b/src/logind.c index 863b1636df..3100fd2517 100644 --- a/src/logind.c +++ b/src/logind.c @@ -736,7 +736,7 @@ static int manager_connect_bus(Manager *m) { m->bus = dbus_bus_get_private(DBUS_BUS_SYSTEM, &error); if (!m->bus) { - log_error("Failed to get system D-Bus connection: %s", error.message); + log_error("Failed to get system D-Bus connection: %s", bus_error_message(&error)); r = -ECONNREFUSED; goto fail; } @@ -759,7 +759,7 @@ static int manager_connect_bus(Manager *m) { &error); if (dbus_error_is_set(&error)) { - log_error("Failed to register match: %s", error.message); + log_error("Failed to register match: %s", bus_error_message(&error)); r = -EIO; goto fail; } |