diff options
author | 2020-01-12 12:16:42 +0100 | |
---|---|---|
committer | 2020-01-12 14:24:24 +0100 | |
commit | 43436034ee68bc6381c278f04cde2044bb85144f (patch) | |
tree | 5128d5c6cc31461841da7841d343d9bda8f05ff9 | |
parent | e1d: add missing forward-declaration of e1inp_e1d_init() (diff) | |
download | libosmo-abis-43436034ee68bc6381c278f04cde2044bb85144f.tar.xz libosmo-abis-43436034ee68bc6381c278f04cde2044bb85144f.zip |
e1d: Don't use perror() directly, use osmocom logging instead
Change-Id: I98f337f8f517b98f9b78dc173e5761687609abd8
-rw-r--r-- | src/input/e1d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/e1d.c b/src/input/e1d.c index ceeb0c2..787bf49 100644 --- a/src/input/e1d.c +++ b/src/input/e1d.c @@ -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; } |