laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/43218?usp=email )
(
1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )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(-)
Approvals: osmith: Looks good to me, approved laforge: Looks good to me, but someone else must approve Jenkins Builder: Verified
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 : "");