Review at  https://gerrit.osmocom.org/3013

gen_mtp_transfer_req_xua(): add addr to error log for missing DPC

Change-Id: Icfd45bcbecc440b94893db2aca537a162f210abd
---
M src/sccp_scrc.c
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/13/3013/1

diff --git a/src/sccp_scrc.c b/src/sccp_scrc.c
index 333ab61..7ae1984 100644
--- a/src/sccp_scrc.c
+++ b/src/sccp_scrc.c
@@ -26,6 +26,7 @@
 #include <sccp/sccp_types.h>
 #include <osmocom/sigtran/osmo_ss7.h>
 #include <osmocom/sigtran/sccp_sap.h>
+#include <osmocom/sigtran/sccp_helpers.h>
 #include <osmocom/sigtran/protocol/sua.h>
 #include <osmocom/sigtran/protocol/mtp.h>
 
@@ -125,7 +126,8 @@
                xua->mtp.dpc = called->pc;
        if (!xua->mtp.dpc) {
                LOGP(DLSCCP, LOGL_ERROR, "MTP-TRANSFER.req from SCCP "
-                       "without DPC?!?\n");
+                       "without DPC?!? called=%s\n",
+                       osmo_sccp_addr_dump(called));
                return -1;
        }
 

-- 
To view, visit https://gerrit.osmocom.org/3013
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icfd45bcbecc440b94893db2aca537a162f210abd
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <[email protected]>

Reply via email to