laforge submitted this change.

View Change



1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Approvals: osmith: Looks good to me, approved laforge: Looks good to me, but someone else must approve Jenkins Builder: Verified
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(-)

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 change 43218. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: libosmo-sigtran
Gerrit-Branch: master
Gerrit-Change-Id: Icf82c349734071a970c226aa743b5932450a2f99
Gerrit-Change-Number: 43218
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>