summaryrefslogtreecommitdiffstats
path: root/serial/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'serial/manager.c')
-rw-r--r--serial/manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/serial/manager.c b/serial/manager.c
index eb49f8e9..e03e9b01 100644
--- a/serial/manager.c
+++ b/serial/manager.c
@@ -359,8 +359,8 @@ static void rfcomm_connect_cb(GIOChannel *chan, int err_cb, gpointer user_data)
}
if (err_cb < 0) {
- error("connect(): %s (%d)", strerror(err_cb), err_cb);
- error_connection_attempt_failed(pc->conn, pc->msg, err_cb);
+ error("connect(): %s (%d)", strerror(-err_cb), -err_cb);
+ error_connection_attempt_failed(pc->conn, pc->msg, -err_cb);
goto fail;
}