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

Change-Id: I503cc97db5f907610074cb513299a3a8505e00e5
This commit is contained in:
Harald Welte 2021-04-25 18:44:35 +02:00
parent f414447bfd
commit 8a43eb4186
1 changed files with 6 additions and 0 deletions

View File

@ -809,7 +809,13 @@ osmo_ss7_route_create(struct osmo_ss7_route_table *rtbl, uint32_t pc,
/*! \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);
}