diff options
author | Pau Espin Pedrol <pespin@espeweb.net> | 2021-02-02 16:41:44 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@espeweb.net> | 2021-02-02 16:41:44 +0100 |
commit | 462ec86ff37bdf39ac8012b3b7a2664d6532cad5 (patch) | |
tree | 3350c77de84eb910bf155774faa78084c971c4da /src/mncc.c | |
parent | ad353b885eba08d41f4e25e3812aea8131e6c5a5 (diff) |
mncc: Log write error code
Change-Id: If7b49bee6fec3a188c978c0606c524776a577927
Diffstat (limited to 'src/mncc.c')
-rw-r--r-- | src/mncc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |