aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rs232.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rs232.c b/src/rs232.c
index 14b2d6e..798bf72 100644
--- a/src/rs232.c
+++ b/src/rs232.c
@@ -230,7 +230,7 @@ int osmo_rs232_open(struct osmo_rs232 *r)
if (rc < 0) {
close(bfd->fd);
LOGP(DLINP, LOGL_ERROR, "rs232: could not register FD: %s\n",
- strerror(rc));
+ strerror(-rc));
return rc;
}