aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_msc_ip.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-04 15:44:53 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-04 15:44:53 +0200
commit749ba7f5ad4be88b0bf2a845558475e95685b780 (patch)
treef0affc5568951dfba1db0ec0f5607e45f8c8d064 /openbsc/src/bsc_msc_ip.c
parent860c8955c3bc15b59c0c85188e66f630f38f0563 (diff)
bsc_msc_ip.c: Use strerror to print the errno variable.
Diffstat (limited to 'openbsc/src/bsc_msc_ip.c')
-rw-r--r--openbsc/src/bsc_msc_ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c
index 0bdb8ba54..9cb341c7d 100644
--- a/openbsc/src/bsc_msc_ip.c
+++ b/openbsc/src/bsc_msc_ip.c
@@ -585,7 +585,7 @@ static int mgcp_do_write(struct bsc_fd *fd, struct msgb *msg)
ret = write(fd->fd, msg->data, msg->len);
if (ret != msg->len)
- LOGP(DMGCP, LOGL_ERROR, "Failed to forward message to MGCP GW.\n");
+ LOGP(DMGCP, LOGL_ERROR, "Failed to forward message to MGCP GW (%s).\n", strerror(errno));
return ret;
}
@@ -676,7 +676,7 @@ static int mgcp_create_port(void)
/* connect to the remote */
addr.sin_port = htons(2427);
if (connect(mgcp_agent.bfd.fd, (struct sockaddr *) & addr, sizeof(addr)) < 0) {
- LOGP(DMGCP, LOGL_FATAL, "Failed to connect to local MGCP GW. %d\n", errno);
+ LOGP(DMGCP, LOGL_FATAL, "Failed to connect to local MGCP GW. %s\n", strerror(errno));
close(mgcp_agent.bfd.fd);
mgcp_agent.bfd.fd = -1;
return -1;