mncc: Log write error code

Change-Id: If7b49bee6fec3a188c978c0606c524776a577927
This commit is contained in:
Pau Espin Pedrol 2021-02-02 16:41:44 +01:00
parent ad353b885e
commit 462ec86ff3
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}