Set STC_DEBUG_LOG flag
[platform/core/connectivity/stc-manager.git] / src / helper / helper-cgroup.c
index aa01d16..c636bc2 100755 (executable)
@@ -116,7 +116,9 @@ int cgroup_write_node_uint32(const char *cgroup_name,
 {
        char buf[MAX_PATH_LENGTH];
        snprintf(buf, sizeof(buf), "%s/%s", cgroup_name, file_name);
+#if STC_DEBUG_LOG
        STC_LOGD("cgroup_buf %s, value %d\n", buf, value);
+#endif
        return fwrite_uint(buf, value);
 }
 
@@ -125,7 +127,9 @@ int cgroup_write_node_str(const char *cgroup_name,
 {
        char buf[MAX_PATH_LENGTH];
        snprintf(buf, sizeof(buf), "%s/%s", cgroup_name, file_name);
+#if STC_DEBUG_LOG
        STC_LOGD("cgroup_buf %s, string %s\n", buf, string);
+#endif
        return fwrite_str(buf, string);
 }
 
@@ -136,7 +140,9 @@ int cgroup_read_node_uint32(const char *cgroup_name,
        int ret;
        snprintf(buf, sizeof(buf), "%s/%s", cgroup_name, file_name);
        ret = fread_uint(buf, value);
+#if STC_DEBUG_LOG
        STC_LOGD("cgroup_buf %s, value %d\n", buf, *value);
+#endif
        return ret;
 }