diff options
author | Max <msuraev@sysmocom.de> | 2018-11-06 17:04:21 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-05-10 13:36:18 +0200 |
commit | 38176d297d63af994dcd2d96bdc0b93895db98dd (patch) | |
tree | 10ac3fb957fdd5ca28d8eb4edb69eefd812381fb /src | |
parent | ea9ea52bbbcb63a6cbba91a3914a706242af06b0 (diff) |
NS: log address:port on error
Change-Id: If2dc533a6dc150254f5d44b672f04bb728e7e927
Diffstat (limited to 'src')
-rw-r--r-- | src/gb/gprs_ns.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |