diff options
author | Harald Welte <laforge@osmocom.org> | 2020-01-12 12:16:42 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-01-12 14:24:24 +0100 |
commit | 43436034ee68bc6381c278f04cde2044bb85144f (patch) | |
tree | 5128d5c6cc31461841da7841d343d9bda8f05ff9 | |
parent | c6c70766b3ad5b152d770c7aae1b259d263441ba (diff) |
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; } |