cosmetic: print textual error from recv()
Change-Id: Ic9557c6519b44b5985daf7d2d14ec063790441fb
This commit is contained in:
parent
a2b50809c7
commit
1bfbf98f06
|
@ -244,7 +244,7 @@ int osmo_dgram_rx_recv(struct osmo_dgram_rx *conn,
|
||||||
|
|
||||||
ret = recv(conn->ofd.fd, msg->data, msg->data_len, 0);
|
ret = recv(conn->ofd.fd, msg->data, msg->data_len, 0);
|
||||||
if (ret < 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;
|
return ret;
|
||||||
}
|
}
|
||||||
msgb_put(msg, ret);
|
msgb_put(msg, ret);
|
||||||
|
|
Loading…
Reference in New Issue