[nfacct-rule] Use heap instead of stack, to aviod large stack usage issue.
[platform/core/connectivity/stc-manager.git] / src / stc-manager-plugin.c
index 9a8d96b..d1e6d30 100755 (executable)
@@ -117,8 +117,8 @@ int stc_register_state_changed_cb(stc_s *stc,
        __STC_LOG_FUNC_ENTER__;
 
        if (!stc_plugin_enabled) {
-               __STC_LOG_FUNC_EXIT__;
                STC_LOGE("Plugin wasn't enabled");
+               __STC_LOG_FUNC_EXIT__;
                return 0;
        }
 
@@ -128,6 +128,7 @@ int stc_register_state_changed_cb(stc_s *stc,
                return 0;
        }
 
+       __STC_LOG_FUNC_EXIT__;
        return stc_plugin->register_state_changed_cb(stc, cb, data);
 }
 int stc_deregister_state_changed_cb(stc_s *stc)
@@ -135,17 +136,17 @@ int stc_deregister_state_changed_cb(stc_s *stc)
        __STC_LOG_FUNC_ENTER__;
 
        if (!stc_plugin_enabled) {
-               __STC_LOG_FUNC_EXIT__;
                STC_LOGE("Plugin wasn't enabled");
+               __STC_LOG_FUNC_EXIT__;
                return 0;
        }
 
        if (!stc_plugin) {
-               __STC_LOG_FUNC_EXIT__;
                STC_LOGE("Plugin wasn't loaded");
+               __STC_LOG_FUNC_EXIT__;
                return 0;
        }
-       __STC_LOG_FUNC_EXIT__;
 
+       __STC_LOG_FUNC_EXIT__;
        return stc_plugin->deregister_state_changed_cb(stc);
 }