{
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);
}
{
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);
}
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;
}