e1d: Don't use perror() directly, use osmocom logging instead
Change-Id: I98f337f8f517b98f9b78dc173e5761687609abd8
This commit is contained in:
parent
c6c70766b3
commit
43436034ee
|
@ -66,13 +66,13 @@ handle_ts_sign_read(struct osmo_fd *bfd)
|
|||
|
||||
ret = read(bfd->fd, msg->data, TS_SIGN_ALLOC_SIZE - 16);
|
||||
if (ret < 0) {
|
||||
perror("read ");
|
||||
LOGP(DLMI, LOGL_ERROR, "%s read failed %d (%s)\n", __func__, ret, strerror(errno));
|
||||
return ret;
|
||||
}
|
||||
|
||||
msgb_put(msg, ret);
|
||||
if (ret <= 1) {
|
||||
perror("read ");
|
||||
LOGP(DLMI, LOGL_ERROR, "%s read failed %d (%s)\n", __func__, ret, strerror(errno));
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue