summaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-05-11 18:38:36 +0200
committerHarald Welte <laforge@gnumonks.org>2010-05-11 18:38:36 +0200
commitbba902db196e4e947b786022e9c19aa3f1ae195e (patch)
tree0ed2e121239f61bb3b7fa6eb6c87b404dc395172 /openbsc
parent9a39293ced5f44f8bad243f50b6cb8af4414d91f (diff)
[gprs] NS: include port number in log statement
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/gprs/gprs_ns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gprs_ns.c b/openbsc/src/gprs/gprs_ns.c
index 3d05dd0f..9c0c4ec9 100644
--- a/openbsc/src/gprs/gprs_ns.c
+++ b/openbsc/src/gprs/gprs_ns.c
@@ -488,8 +488,9 @@ int gprs_ns_rcvmsg(struct gprs_ns_inst *nsi, struct msgb *msg,
/* Only the RESET procedure creates a new NSVC */
if (nsh->pdu_type != NS_PDUT_RESET) {
LOGP(DNS, LOGL_INFO, "Ignoring NS PDU type 0x%0x "
- "from %s for non-existing NS-VC\n",
- nsh->pdu_type, inet_ntoa(saddr->sin_addr));
+ "from %s:%u for non-existing NS-VC\n",
+ nsh->pdu_type, inet_ntoa(saddr->sin_addr),
+ ntohs(saddr->sin_port));
//gprs_ns_tx_reset(nsvc, NS_CAUSE_NSVC_UNKNOWN);
return -EIO;
}