dexter has uploaded this change for review.
e1d: maintain error log consistency in handle_ts_hdlc_read
The function handle_ts_hdlc_read() should log read errors in the same
way as the other functions do
Change-Id: I0af06d6adcbf61e0996d9888feb70b74f0c9c0ef
---
M src/input/e1d.c
1 file changed, 13 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/38/32338/1
diff --git a/src/input/e1d.c b/src/input/e1d.c
index 289e693..56fb5e5 100644
--- a/src/input/e1d.c
+++ b/src/input/e1d.c
@@ -291,7 +291,7 @@
ret = read(bfd->fd, msg->data, TSX_ALLOC_SIZE);
if (ret < 0) {
- LOGPITS(e1i_ts, DLINP, LOGL_NOTICE, "read error %d %s\n", ret, strerror(errno));
+ LOGPITS(e1i_ts, DLINP, LOGL_ERROR, "%s read error: %d %s\n", __func__, ret, strerror(errno));
msgb_free(msg);
return ret;
}
To view, visit change 32338. To unsubscribe, or for help writing mail filters, visit settings.