diff options
author | Max <msuraev@sysmocom.de> | 2019-01-20 12:48:47 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2019-01-24 17:23:24 +0000 |
commit | 3a2aa0975a4bdc005d424a70496ca85169a73817 (patch) | |
tree | 23432e28a9cab36cd27319365e621f23343421d4 | |
parent | 480073a6604af75d939efc25b30e527f71cb9f6c (diff) |
Log peer's port in accept callback
* log port from which we accept() the connection in addition to address
* use macro helper for logging
Change-Id: I186974dae1819af8c92f9ea9eeb966ec7c9c9f55
-rw-r--r-- | src/input/ipa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/ipa.c b/src/input/ipa.c index 9853ffa..e41ec42 100644 --- a/src/input/ipa.c +++ b/src/input/ipa.c @@ -266,8 +266,8 @@ static int ipa_server_fd_cb(struct osmo_fd *ofd, unsigned int what) link->addr = talloc_strdup(link, ipbuf); } - LOGP(DLINP, LOGL_NOTICE, "accept()ed new link from %s to port %u\n", - inet_ntoa(sa.sin_addr), link->port); + LOGIPA(link, LOGL_NOTICE, "accept()ed new link from %s:%u\n", + inet_ntoa(sa.sin_addr), ntohs(sa.sin_port)); ret = link->accept_cb(link, fd); if (ret < 0) { |