Merge "Return errors to caller" into tizen_5.5
[platform/core/connectivity/stc-manager.git] / src / helper / helper-net-cls.c
index 3f460f7..350dfb6 100755 (executable)
@@ -87,7 +87,7 @@ static stc_error_e __get_classid_from_cgroup(const char *cgroup,
        return STC_ERROR_NONE;
 }
 
-stc_error_e init_current_classid(void)
+API stc_error_e init_current_classid(void)
 {
        int ret = 0;
        struct stat stat_buf;
@@ -172,12 +172,12 @@ API uint32_t get_classid_by_app_id(const char *app_id, int create)
        return classid;
 
 handle_error:
-
-       STC_LOGE("error_code: [%d]", ret); //LCOV_EXCL_LINE
+       if (STC_DEBUG_LOG)
+               STC_LOGE("error_code: [%d]", ret); //LCOV_EXCL_LINE
        return STC_UNKNOWN_CLASSID; //LCOV_EXCL_LINE
 }
 
-stc_error_e place_pids_to_net_cgroup(const int pid, const char *app_id)
+API stc_error_e place_pids_to_net_cgroup(const int pid, const char *app_id)
 {
        char child_buf[21 + MAX_DEC_SIZE(int) + MAX_DEC_SIZE(int) + 1];
        const char *path_to_net_cgroup_dir = NULL;