mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-sip-connector.git
synced 2025-11-01 20:53:54 +00:00
mncc: Log write error code
Change-Id: If7b49bee6fec3a188c978c0606c524776a577927
This commit is contained in:
@@ -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));
|
||||
LOGP(DMNCC, LOGL_DEBUG, "MNCC sent message type: %s\n", osmo_mncc_name(rtp->msg_type));
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user