X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fhelper%2Fhelper-net-cls.c;h=350dfb676eaa4058c21cbc2f0c93c387410670a7;hb=refs%2Fheads%2Ftizen_5.5;hp=3f460f7caf52be5cd7830dfaff5a6a019a37a8ed;hpb=e3196e55c8dc3729d65b167ef85b6de47f38e98d;p=platform%2Fcore%2Fconnectivity%2Fstc-manager.git diff --git a/src/helper/helper-net-cls.c b/src/helper/helper-net-cls.c index 3f460f7..350dfb6 100755 --- a/src/helper/helper-net-cls.c +++ b/src/helper/helper-net-cls.c @@ -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;