summaryrefslogtreecommitdiffstats
path: root/mock-ril/src/cpp/mock_ril.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mock-ril/src/cpp/mock_ril.cpp')
-rw-r--r--mock-ril/src/cpp/mock_ril.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/mock-ril/src/cpp/mock_ril.cpp b/mock-ril/src/cpp/mock_ril.cpp
index f6b6807..7c199c9 100644
--- a/mock-ril/src/cpp/mock_ril.cpp
+++ b/mock-ril/src/cpp/mock_ril.cpp
@@ -59,7 +59,7 @@ extern void RIL_register(const RIL_RadioFunctions *callbacks);
//#define MOCK_RIL_DEBUG
#ifdef MOCK_RIL_DEBUG
-#define DBG(...) LOGD(__VA_ARGS__)
+#define DBG(...) ALOGD(__VA_ARGS__)
#else
@@ -243,7 +243,7 @@ class UnsolicitedThread : public WorkerThread {
void * Worker(void *param)
{
- LOGD("UnsolicitedThread::Worker E param=%p", param);
+ ALOGD("UnsolicitedThread::Worker E param=%p", param);
v8::Locker locker;
@@ -261,7 +261,7 @@ class UnsolicitedThread : public WorkerThread {
v8::Locker locker;
}
- LOGD("UnsolicitedThread::Worker X param=%p", param);
+ ALOGD("UnsolicitedThread::Worker X param=%p", param);
return NULL;
}
@@ -280,12 +280,12 @@ void startMockRil(v8::Handle<v8::Context> context) {
v8::Handle<v8::Value> result = start->Call(context->Global(), 0, NULL);
if (try_catch.HasCaught()) {
- LOGE("startMockRil error");
+ ALOGE("startMockRil error");
ReportException(&try_catch);
- LOGE("FATAL ERROR: Unsable to startMockRil.");
+ ALOGE("FATAL ERROR: Unsable to startMockRil.");
} else {
v8::String::Utf8Value result_string(result);
- LOGE("startMockRil result=%s", ToCString(result_string));
+ ALOGE("startMockRil result=%s", ToCString(result_string));
}
}
@@ -296,7 +296,7 @@ const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env, int argc,
int ret;
pthread_attr_t attr;
- LOGD("RIL_Init E: ----------------");
+ ALOGD("RIL_Init E: ----------------");
// Initialize V8
v8::V8::Initialize();
@@ -326,7 +326,7 @@ const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env, int argc,
runJs(context, &try_catch, "mock_ril.js", buffer);
if (try_catch.HasCaught()) {
// TODO: Change to event this is fatal
- LOGE("FATAL ERROR: Unable to run mock_ril.js");
+ ALOGE("FATAL ERROR: Unable to run mock_ril.js");
}
}
@@ -335,13 +335,13 @@ const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env, int argc,
responsesInit(context);
#if 0
- LOGD("RIL_Init run tests #####################");
+ ALOGD("RIL_Init run tests #####################");
testJsSupport(context);
testRequests(context);
experiments(context);
testWorker();
testWorkerV8(context);
- LOGD("RIL_Init tests completed ###############");
+ ALOGD("RIL_Init tests completed ###############");
#endif
// Register our call backs so when we startMockRil
@@ -357,6 +357,6 @@ const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env, int argc,
ut->Run(NULL);
#endif
- LOGD("RIL_Init X: ----------------");
+ ALOGD("RIL_Init X: ----------------");
return &s_callbacks;
}