pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bsc/+/40637?usp=email )
Change subject: sigtran: Log N-PCSTATE.ind PC with configured format
......................................................................
sigtran: Log N-PCSTATE.ind PC with configured format
Change-Id: I9b55beec418e1c136531422cb23dae55fe422b9e
---
M src/osmo-bsc/osmo_bsc_sigtran.c
1 file changed, 7 insertions(+), 6 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/37/40637/1
diff --git a/src/osmo-bsc/osmo_bsc_sigtran.c b/src/osmo-bsc/osmo_bsc_sigtran.c
index 8abeeb6..42e9a38 100644
--- a/src/osmo-bsc/osmo_bsc_sigtran.c
+++ b/src/osmo-bsc/osmo_bsc_sigtran.c
@@ -212,8 +212,9 @@
bool connected;
bool disconnected;
- LOGP(DMSC, LOGL_DEBUG, "N-PCSTATE ind: affected_pc=%u sp_status=%s
remote_sccp_status=%s\n",
- pcst->affected_pc, osmo_sccp_sp_status_name(pcst->sp_status),
+ LOGP(DMSC, LOGL_DEBUG, "N-PCSTATE ind: affected_pc=%u=%s sp_status=%s
remote_sccp_status=%s\n",
+ pcst->affected_pc, osmo_ss7_pointcode_print(cs7, pcst->affected_pc),
+ osmo_sccp_sp_status_name(pcst->sp_status),
osmo_sccp_rem_sccp_status_name(pcst->remote_sccp_status));
/* If we don't care about that point-code, ignore PCSTATE. */
@@ -276,16 +277,16 @@
if (disconnected && a_reset_conn_ready(msc)) {
LOGP(DMSC, LOGL_NOTICE,
- "(msc%d) now unreachable: N-PCSTATE ind: pc=%u sp_status=%s
remote_sccp_status=%s\n",
- msc->nr, pcst->affected_pc,
+ "(msc%d) now unreachable: N-PCSTATE ind: pc=%u=%s sp_status=%s
remote_sccp_status=%s\n",
+ msc->nr, pcst->affected_pc, osmo_ss7_pointcode_print(cs7,
pcst->affected_pc),
osmo_sccp_sp_status_name(pcst->sp_status),
osmo_sccp_rem_sccp_status_name(pcst->remote_sccp_status));
/* A previously usable MSC has disconnected. Kick the BSSMAP back to DISC state. */
bssmap_reset_set_disconnected(msc->a.bssmap_reset);
} else if (connected && !a_reset_conn_ready(msc)) {
LOGP(DMSC, LOGL_NOTICE,
- "(msc%d) now available: N-PCSTATE ind: pc=%u sp_status=%s
remote_sccp_status=%s\n",
- msc->nr, pcst->affected_pc,
+ "(msc%d) now available: N-PCSTATE ind: pc=%u=%s sp_status=%s
remote_sccp_status=%s\n",
+ msc->nr, pcst->affected_pc, osmo_ss7_pointcode_print(cs7,
pcst->affected_pc),
osmo_sccp_sp_status_name(pcst->sp_status),
osmo_sccp_rem_sccp_status_name(pcst->remote_sccp_status));
/* A previously unusable MSC has become reachable. Trigger immediate BSSMAP RESET -- we
would resend a
--
To view, visit
https://gerrit.osmocom.org/c/osmo-bsc/+/40637?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I9b55beec418e1c136531422cb23dae55fe422b9e
Gerrit-Change-Number: 40637
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>