summaryrefslogtreecommitdiffstats
path: root/serial
diff options
context:
space:
mode:
Diffstat (limited to 'serial')
-rw-r--r--serial/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/manager.c b/serial/manager.c
index 0c2baba9..5f6ad065 100644
--- a/serial/manager.c
+++ b/serial/manager.c
@@ -886,7 +886,7 @@ static DBusHandlerResult disconnect_service(DBusConnection *conn,
err = rfcomm_release(node->id);
if (err < 0) {
dbus_message_unref(reply);
- return err_failed(conn, msg, strerror(err));
+ return err_failed(conn, msg, strerror(-err));
}
dbus_connection_emit_signal(conn, SERIAL_MANAGER_PATH,