From 38176d297d63af994dcd2d96bdc0b93895db98dd Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 6 Nov 2018 17:04:21 +0100 Subject: NS: log address:port on error Change-Id: If2dc533a6dc150254f5d44b672f04bb728e7e927 --- src/gb/gprs_ns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gb/gprs_ns.c b/src/gb/gprs_ns.c index 3679a5ba..cee48855 100644 --- a/src/gb/gprs_ns.c +++ b/src/gb/gprs_ns.c @@ -1963,8 +1963,8 @@ static struct msgb *read_nsip_msg(struct osmo_fd *bfd, int *error, ret = recvfrom(bfd->fd, msg->data, NS_ALLOC_SIZE - NS_ALLOC_HEADROOM, 0, (struct sockaddr *)saddr, &saddr_len); if (ret < 0) { - LOGP(DNS, LOGL_ERROR, "recv error %s during NSIP recv\n", - strerror(errno)); + LOGP(DNS, LOGL_ERROR, "recv error %s during NSIP recvfrom %s\n", + strerror(errno), osmo_sock_get_name2(bfd->fd)); msgb_free(msg); *error = ret; return NULL; -- cgit v1.2.3