pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/43218?usp=email ) Change subject: sua: Use helper function m3ua_ntfy_info_name() ...................................................................... sua: Use helper function m3ua_ntfy_info_name() Use the helper function already used in m3ua_rx_mgmt_ntfy(). Change-Id: Icf82c349734071a970c226aa743b5932450a2f99 --- M src/sua.c 1 file changed, 1 insertion(+), 14 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-sigtran refs/changes/18/43218/1 diff --git a/src/sua.c b/src/sua.c index b169d50..3b54c22 100644 --- a/src/sua.c +++ b/src/sua.c @@ -657,20 +657,7 @@ m3ua_decode_notify(&ntfy, asp, xua); type_name = get_value_string(m3ua_ntfy_type_names, ntfy.status_type); - - switch (ntfy.status_type) { - case M3UA_NOTIFY_T_STATCHG: - info_name = get_value_string(m3ua_ntfy_stchg_names, - ntfy.status_info); - break; - case M3UA_NOTIFY_T_OTHER: - info_name = get_value_string(m3ua_ntfy_other_names, - ntfy.status_info); - break; - default: - info_name = "NULL"; - break; - } + info_name = m3ua_ntfy_info_name(ntfy.status_type, ntfy.status_info); LOGPASP(asp, DLSUA, LOGL_NOTICE, "Received NOTIFY Type %s:%s (%s)\n", type_name, info_name, ntfy.info_string ? ntfy.info_string : ""); -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/43218?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: libosmo-sigtran Gerrit-Branch: master Gerrit-Change-Id: Icf82c349734071a970c226aa743b5932450a2f99 Gerrit-Change-Number: 43218 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin@sysmocom.de>