pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-hnbgw/+/40638?usp=email )


Change subject: sigtran: Log N-PCSTATE.ind PC with configured format
......................................................................

sigtran: Log N-PCSTATE.ind PC with configured format

Change-Id: I4049853a9eb4b0df5d998e18464ad27c47fdc942
---
M src/osmo-hnbgw/hnbgw_sccp.c
1 file changed, 7 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hnbgw refs/changes/38/40638/1

diff --git a/src/osmo-hnbgw/hnbgw_sccp.c b/src/osmo-hnbgw/hnbgw_sccp.c
index ed58b78..2020f40 100644
--- a/src/osmo-hnbgw/hnbgw_sccp.c
+++ b/src/osmo-hnbgw/hnbgw_sccp.c
@@ -201,8 +201,9 @@
        bool disconnected;
        struct osmo_ss7_instance *cs7 = hsu->ss7;

-       LOGP(DCN, 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(DCN, 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. */
@@ -267,16 +268,16 @@

        if (disconnected && cnlink_is_conn_ready(cnlink)) {
                LOG_CNLINK(cnlink, DCN, LOGL_NOTICE,
-                          "now unreachable: N-PCSTATE ind: pc=%u sp_status=%s 
remote_sccp_status=%s\n",
-                          pcst->affected_pc,
+                          "now unreachable: N-PCSTATE ind: 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));
                /* A previously usable cnlink has disconnected. Kick it back to 
DISC state. */
                cnlink_set_disconnected(cnlink);
        } else if (connected && !cnlink_is_conn_ready(cnlink)) {
                LOG_CNLINK(cnlink, DCN, LOGL_NOTICE,
-                          "now available: N-PCSTATE ind: pc=%u sp_status=%s 
remote_sccp_status=%s\n",
-                          pcst->affected_pc,
+                          "now available: N-PCSTATE ind: 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));
                /* A previously unusable cnlink has become reachable. Trigger 
immediate RANAP RESET -- we would resend a

--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/40638?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: I4049853a9eb4b0df5d998e18464ad27c47fdc942
Gerrit-Change-Number: 40638
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to