mncc: Log write error code

Change-Id: If7b49bee6fec3a188c978c0606c524776a577927
changes/33/22633/1
Pau Espin Pedrol 2 years ago
parent ad353b885e
commit 462ec86ff3
  1. 2
      src/mncc.c

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

Loading…
Cancel
Save