summaryrefslogtreecommitdiffstats
path: root/libcutils/sched_policy.c
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2010-03-25 09:31:42 -0700
committerSan Mehat <san@google.com>2010-03-25 09:31:42 -0700
commit7e8529a8b528fd30586aa037f15a31b29582c537 (patch)
tree850922c096dc45230da1047dc3372df428f21965 /libcutils/sched_policy.c
parentc741f22d8533226ce60903649a7a57b3f05a65af (diff)
downloadsystem_core-7e8529a8b528fd30586aa037f15a31b29582c537.zip
system_core-7e8529a8b528fd30586aa037f15a31b29582c537.tar.gz
system_core-7e8529a8b528fd30586aa037f15a31b29582c537.tar.bz2
system/core: Switch libsysutils & sched_policy LOG -> SLOG
Change-Id: Id74c6895a8012c5915f2e259339101844de7c085 Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'libcutils/sched_policy.c')
-rw-r--r--libcutils/sched_policy.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libcutils/sched_policy.c b/libcutils/sched_policy.c
index 2333762..3a18b0b 100644
--- a/libcutils/sched_policy.c
+++ b/libcutils/sched_policy.c
@@ -53,7 +53,7 @@ static int add_tid_to_cgroup(int tid, const char *grp_name)
sprintf(path, "/dev/cpuctl/%s/tasks", grp_name);
if ((fd = open(path, O_WRONLY)) < 0) {
- LOGE("add_tid_to_cgroup failed to open '%s' (%s)\n", path,
+ SLOGE("add_tid_to_cgroup failed to open '%s' (%s)\n", path,
strerror(errno));
return -1;
}
@@ -67,7 +67,7 @@ static int add_tid_to_cgroup(int tid, const char *grp_name)
*/
if (errno == ESRCH)
return 0;
- LOGW("add_tid_to_cgroup failed to write '%s' (%s)\n", path,
+ SLOGW("add_tid_to_cgroup failed to write '%s' (%s)\n", path,
strerror(errno));
return -1;
}
@@ -146,11 +146,11 @@ static int getSchedulerGroup(int tid, char* buf, size_t bufLen)
return 0;
}
- LOGE("Failed to find cpu subsys");
+ SLOGE("Failed to find cpu subsys");
fclose(fp);
return -1;
out_bad_data:
- LOGE("Bad cgroup data {%s}", lineBuf);
+ SLOGE("Bad cgroup data {%s}", lineBuf);
fclose(fp);
return -1;
#else
@@ -219,11 +219,11 @@ int set_sched_policy(int tid, SchedPolicy policy)
strncpy(thread_name, p, (q-p));
}
if (policy == SP_BACKGROUND) {
- LOGD("vvv tid %d (%s)", tid, thread_name);
+ SLOGD("vvv tid %d (%s)", tid, thread_name);
} else if (policy == SP_FOREGROUND) {
- LOGD("^^^ tid %d (%s)", tid, thread_name);
+ SLOGD("^^^ tid %d (%s)", tid, thread_name);
} else {
- LOGD("??? tid %d (%s)", tid, thread_name);
+ SLOGD("??? tid %d (%s)", tid, thread_name);
}
#endif