pespin has uploaded this change for review.

View Change

sccp_scrc: Improve logging of route lookup failure

Change-Id: I54a59f8b95451b473204d625acdc22dcfc94b631
---
M src/sccp_scrc.c
1 file changed, 3 insertions(+), 2 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/06/39706/1
diff --git a/src/sccp_scrc.c b/src/sccp_scrc.c
index 869235c..63ded9d 100644
--- a/src/sccp_scrc.c
+++ b/src/sccp_scrc.c
@@ -154,8 +154,9 @@

rt = ss7_instance_lookup_route(inst->ss7, &rtlabel);
if (!rt) {
- LOGP(DLSCCP, LOGL_ERROR, "MTP-TRANSFER.req from SCCP for "
- "DPC %u: no route!\n", xua->mtp.dpc);
+ char buf[256];
+ LOGP(DLSCCP, LOGL_ERROR, "MTP-TRANSFER.req from SCCP for %s: no route!\n",
+ ss7_route_label_to_str(buf, sizeof(buf), inst->ss7, &rtlabel));
return -1;
}


To view, visit change 39706. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: I54a59f8b95451b473204d625acdc22dcfc94b631
Gerrit-Change-Number: 39706
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>