rs232: Don't pass negative number to strerror()
Change-Id: Ia777221cd0472cd1e7aa79e5146b07048a545dd8 Fixes: Coverity CID 57860
This commit is contained in:
parent
e63f88146d
commit
3dd57f737c
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue