mncc: Log write error code
Change-Id: If7b49bee6fec3a188c978c0606c524776a577927
This commit is contained in:
parent
ad353b885e
commit
462ec86ff3
|
@ -163,7 +163,7 @@ static int mncc_rtp_write(struct mncc_connection *conn, struct gsm_mncc_rtp *rtp
|
||||||
rc = write(conn->fd.fd, &rtp, sizeof(rtp));
|
rc = write(conn->fd.fd, &rtp, sizeof(rtp));
|
||||||
LOGP(DMNCC, LOGL_DEBUG, "MNCC sent message type: %s\n", osmo_mncc_name(rtp->msg_type));
|
LOGP(DMNCC, LOGL_DEBUG, "MNCC sent message type: %s\n", osmo_mncc_name(rtp->msg_type));
|
||||||
if (rc != sizeof(*rtp)) {
|
if (rc != sizeof(*rtp)) {
|
||||||
LOGP(DMNCC, LOGL_ERROR, "Failed to send message for call(%u)\n", rtp->callref);
|
LOGP(DMNCC, LOGL_ERROR, "Failed to send message for call(%u): %d\n", rtp->callref, rc);
|
||||||
close_connection(conn);
|
close_connection(conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue