[MERGED] libosmo-netif[master]: cosmetic: print textual error from recv()

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Oct 13 18:54:30 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: cosmetic: print textual error from recv()
......................................................................


cosmetic: print textual error from recv()

Change-Id: Ic9557c6519b44b5985daf7d2d14ec063790441fb
---
M src/datagram.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/datagram.c b/src/datagram.c
index 10204e2..ea31cd1 100644
--- a/src/datagram.c
+++ b/src/datagram.c
@@ -244,7 +244,7 @@
 
 	ret = recv(conn->ofd.fd, msg->data, msg->data_len, 0);
 	if (ret < 0) {
-		LOGP(DLINP, LOGL_ERROR, "error receiving data from tx\n");
+		LOGP(DLINP, LOGL_ERROR, "error receiving data from tx: %s\n", strerror(errno));
 		return ret;
 	}
 	msgb_put(msg, ret);

-- 
To view, visit https://gerrit.osmocom.org/4259
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic9557c6519b44b5985daf7d2d14ec063790441fb
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder


More information about the gerrit-log mailing list