This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/15809 )
Change subject: Use LOGPAS / LOGPASP in favor of generic LOGSS7 where applicable
......................................................................
Use LOGPAS / LOGPASP in favor of generic LOGSS7 where applicable
Change-Id: If3a88863d18941c10d34361b323412ad7e517334
---
M src/osmo_ss7.c
1 file changed, 9 insertions(+), 11 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index 8519ced..8d188fc 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -985,7 +985,6 @@
return NULL;
if (!as) {
- LOGSS7(inst, LOGL_INFO, "Creating AS %s\n", name);
as = talloc_zero(inst, struct osmo_ss7_as);
if (!as)
return NULL;
@@ -997,6 +996,7 @@
as->cfg.routing_key.l_rk_id = find_free_l_rk_id(inst);
as->fi = xua_as_fsm_start(as, LOGL_DEBUG);
llist_add_tail(&as->list, &inst->as_list);
+ LOGPAS(as, DLSS7, LOGL_INFO, "Created AS\n");
}
return as;
@@ -1016,8 +1016,7 @@
if (!asp)
return -ENODEV;
- LOGSS7(as->inst, LOGL_INFO, "Adding ASP %s to AS %s\n",
- asp->cfg.name, as->cfg.name);
+ LOGPAS(as, DLSS7, LOGL_INFO, "Adding ASP %s to AS\n", asp->cfg.name);
if (osmo_ss7_as_has_asp(as, asp))
return 0;
@@ -1046,8 +1045,7 @@
if (!asp)
return -ENODEV;
- LOGSS7(as->inst, LOGL_INFO, "Removing ASP %s from AS %s\n",
- asp->cfg.name, as->cfg.name);
+ LOGPAS(as, DLSS7, LOGL_INFO, "Removing ASP %s from AS\n", asp->cfg.name);
for (i = 0; i < ARRAY_SIZE(as->cfg.asps); i++) {
if (as->cfg.asps[i] == asp) {
@@ -1066,7 +1064,7 @@
struct osmo_ss7_route *rt, *rt2;
OSMO_ASSERT(ss7_initialized);
- LOGSS7(as->inst, LOGL_INFO, "Destroying AS %s\n", as->cfg.name);
+ LOGPAS(as, DLSS7, LOGL_INFO, "Destroying AS\n");
if (as->fi)
osmo_fsm_inst_term(as->fi, OSMO_FSM_TERM_REQUEST, NULL);
@@ -1233,7 +1231,7 @@
struct osmo_ss7_as *as;
OSMO_ASSERT(ss7_initialized);
- LOGSS7(asp->inst, LOGL_INFO, "Destroying ASP %s\n", asp->cfg.name);
+ LOGPASP(asp, DLSS7, LOGL_INFO, "Destroying ASP\n");
if (asp->server)
osmo_stream_srv_destroy(asp->server);
@@ -1270,7 +1268,7 @@
enum xua_asp_role role;
OSMO_ASSERT(ss7_initialized);
- LOGSS7(asp->inst, LOGL_INFO, "Restarting ASP %s\n", asp->cfg.name);
+ LOGPASP(asp, DLSS7, LOGL_INFO, "Restarting ASP\n");
if (!asp->cfg.is_server) {
/* We are in client mode now */
@@ -1283,7 +1281,7 @@
if (!asp->client)
asp->client = osmo_stream_cli_create(asp);
if (!asp->client) {
- LOGSS7(asp->inst, LOGL_ERROR, "Unable to create stream"
+ LOGPASP(asp, DLSS7, LOGL_ERROR, "Unable to create stream"
" client for ASP %s\n", asp->cfg.name);
return -1;
}
@@ -1302,7 +1300,7 @@
osmo_stream_cli_set_data(asp->client, asp);
rc = osmo_stream_cli_open(asp->client);
if (rc < 0) {
- LOGSS7(asp->inst, LOGL_ERROR, "Unable to open stream"
+ LOGPASP(asp, DLSS7, LOGL_ERROR, "Unable to open stream"
" client for ASP %s\n", asp->cfg.name);
/* we don't return error in here because osmo_stream_cli_open()
will continue to retry (due to timeout being explicitly set with
@@ -1319,7 +1317,7 @@
asp->client = NULL;
}
/* FIXME: ensure we have a SCTP server */
- LOGSS7(asp->inst, LOGL_NOTICE, "ASP Restart for server "
+ LOGPASP(asp, DLSS7, LOGL_NOTICE, "ASP Restart for server "
"not implemented yet!\n");
/* TODO: make this configurable and not implicit */
role = XUA_ASPFSM_ROLE_SG;
--
To view, visit https://gerrit.osmocom.org/c/libosmo-sccp/+/15809
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: If3a88863d18941c10d34361b323412ad7e517334
Gerrit-Change-Number: 15809
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191019/94dd7a29/attachment.htm>