Change in libosmo-sccp[master]: osmo_ss7: Log route destruction (like we log route creation)

laforge gerrit-no-reply at lists.osmocom.org
Sun Apr 25 16:49:28 UTC 2021


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/23893 )


Change subject: osmo_ss7: Log route destruction (like we log route creation)
......................................................................

osmo_ss7: Log route destruction (like we log route creation)

Change-Id: I503cc97db5f907610074cb513299a3a8505e00e5
---
M src/osmo_ss7.c
1 file changed, 6 insertions(+), 0 deletions(-)



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

diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index 0b11f11..7021fa8 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -809,7 +809,13 @@
 /*! \brief Destroy a given SS7 route */
 void osmo_ss7_route_destroy(struct osmo_ss7_route *rt)
 {
+	struct osmo_ss7_route_table *rtbl = rt->rtable;
+
 	OSMO_ASSERT(ss7_initialized);
+
+	LOGSS7(rtbl->inst, LOGL_INFO, "Destroying route: pc=%u=%s mask=0x%x via linkset/ASP '%s'\n",
+	       rt->cfg.pc, osmo_ss7_pointcode_print(rtbl->inst, rt->cfg.pc), rt->cfg.mask, rt->cfg.linkset_name);
+
 	llist_del(&rt->list);
 	talloc_free(rt);
 }

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/23893
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I503cc97db5f907610074cb513299a3a8505e00e5
Gerrit-Change-Number: 23893
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210425/86d07b8c/attachment.htm>


More information about the gerrit-log mailing list