summaryrefslogtreecommitdiff
path: root/libsysutils/src/ServiceManager.cpp
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 /libsysutils/src/ServiceManager.cpp
parentc741f22d8533226ce60903649a7a57b3f05a65af (diff)
system/core: Switch libsysutils & sched_policy LOG -> SLOG
Change-Id: Id74c6895a8012c5915f2e259339101844de7c085 Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'libsysutils/src/ServiceManager.cpp')
-rw-r--r--libsysutils/src/ServiceManager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/libsysutils/src/ServiceManager.cpp b/libsysutils/src/ServiceManager.cpp
index 700ac91b9..60b161aae 100644
--- a/libsysutils/src/ServiceManager.cpp
+++ b/libsysutils/src/ServiceManager.cpp
@@ -11,11 +11,11 @@ ServiceManager::ServiceManager() {
int ServiceManager::start(const char *name) {
if (isRunning(name)) {
- LOGW("Service '%s' is already running", name);
+ SLOGW("Service '%s' is already running", name);
return 0;
}
- LOGD("Starting service '%s'", name);
+ SLOGD("Starting service '%s'", name);
property_set("ctl.start", name);
int count = 200;
@@ -25,21 +25,21 @@ int ServiceManager::start(const char *name) {
break;
}
if (!count) {
- LOGW("Timed out waiting for service '%s' to start", name);
+ SLOGW("Timed out waiting for service '%s' to start", name);
errno = ETIMEDOUT;
return -1;
}
- LOGD("Sucessfully started '%s'", name);
+ SLOGD("Sucessfully started '%s'", name);
return 0;
}
int ServiceManager::stop(const char *name) {
if (!isRunning(name)) {
- LOGW("Service '%s' is already stopped", name);
+ SLOGW("Service '%s' is already stopped", name);
return 0;
}
- LOGD("Stopping service '%s'", name);
+ SLOGD("Stopping service '%s'", name);
property_set("ctl.stop", name);
int count = 200;
@@ -50,11 +50,11 @@ int ServiceManager::stop(const char *name) {
}
if (!count) {
- LOGW("Timed out waiting for service '%s' to stop", name);
+ SLOGW("Timed out waiting for service '%s' to stop", name);
errno = ETIMEDOUT;
return -1;
}
- LOGD("Sucessfully stopped '%s'", name);
+ SLOGD("Sucessfully stopped '%s'", name);
return 0;
}