rs232: Don't pass negative number to strerror()

Change-Id: Ia777221cd0472cd1e7aa79e5146b07048a545dd8
Fixes: Coverity CID 57860
This commit is contained in:
Harald Welte 2016-11-26 15:51:04 +01:00
parent e63f88146d
commit 3dd57f737c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}