aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-06 11:17:07 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-06 11:17:07 +0200
commitb462a03c3525090e3a1d4999980ae19349ffb9fd (patch)
treefd1d8efcb9c726e9b76f459171f82bd073c14b97 /openbsc
parent6e0ec5b6fa8e3a67d7c16b90ee89b51b0f910b71 (diff)
nat: Improve the log message and print the errno/strerror(errno)
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/nat/bsc_mgcp_utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/nat/bsc_mgcp_utils.c b/openbsc/src/nat/bsc_mgcp_utils.c
index 1397d0e7a..9e7c822ad 100644
--- a/openbsc/src/nat/bsc_mgcp_utils.c
+++ b/openbsc/src/nat/bsc_mgcp_utils.c
@@ -157,7 +157,8 @@ int bsc_mgcp_policy_cb(struct mgcp_config *cfg, int endpoint, int state, const c
struct sockaddr_in sock;
socklen_t len = sizeof(sock);
if (getpeername(nat->mgcp_queue.bfd.fd, (struct sockaddr *) &sock, &len) != 0) {
- LOGP(DMGCP, LOGL_ERROR, "Can not get the peername...\n");
+ LOGP(DMGCP, LOGL_ERROR, "Can not get the peername...%d/%s\n",
+ errno, strerror(errno));
} else {
mgcp_endp->bts = sock.sin_addr;
}