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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Max gerrit-no-reply at lists.osmocom.org
Fri Oct 13 16:25:38 UTC 2017


Review at  https://gerrit.osmocom.org/4259

cosmetic: print textual error from recv()

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


  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/59/4259/1

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: newchange
Gerrit-Change-Id: Ic9557c6519b44b5985daf7d2d14ec063790441fb
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Owner: Max <msuraev at sysmocom.de>



More information about the gerrit-log mailing list