aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-01-12 12:16:42 +0100
committerHarald Welte <laforge@osmocom.org>2020-01-12 14:24:24 +0100
commit43436034ee68bc6381c278f04cde2044bb85144f (patch)
tree5128d5c6cc31461841da7841d343d9bda8f05ff9
parentc6c70766b3ad5b152d770c7aae1b259d263441ba (diff)
e1d: Don't use perror() directly, use osmocom logging instead
-rw-r--r--src/input/e1d.c4
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;
}