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;
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;