summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/wds/DebugServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/android/wds/DebugServer.cpp')
-rw-r--r--Source/WebKit/android/wds/DebugServer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/WebKit/android/wds/DebugServer.cpp b/Source/WebKit/android/wds/DebugServer.cpp
index f33a65b..2fde6bd 100644
--- a/Source/WebKit/android/wds/DebugServer.cpp
+++ b/Source/WebKit/android/wds/DebugServer.cpp
@@ -42,7 +42,7 @@
#if ENABLE(WDS)
#define DEFAULT_PORT 9999
-#define log_errno(x) LOGE("%s: %d", x, strerror(errno))
+#define log_errno(x) ALOGE("%s: %d", x, strerror(errno))
namespace android {
@@ -70,7 +70,7 @@ DebugServer::DebugServer() {
char buf[PROPERTY_VALUE_MAX];
int ret = property_get("webcore.wds.enable", buf, NULL);
if (ret != -1 && strcmp(buf, "1") == 0) {
- LOGD("WDS Enabled");
+ ALOGD("WDS Enabled");
m_threadId = createThread(mainThread, this, "WDS");
}
// Initialize the available commands.
@@ -78,26 +78,26 @@ DebugServer::DebugServer() {
}
void DebugServer::start() {
- LOGD("DebugServer thread started");
+ ALOGD("DebugServer thread started");
ConnectionServer cs;
if (!cs.connect(DEFAULT_PORT)) {
- LOGE("Failed to start the server socket connection");
+ ALOGE("Failed to start the server socket connection");
return;
}
while (true ) {
- LOGD("Waiting for incoming connections...");
+ ALOGD("Waiting for incoming connections...");
Connection* conn = cs.accept();
if (!conn) {
log_errno("Failed to accept new connections");
return;
}
- LOGD("...Connection established");
+ ALOGD("...Connection established");
Command* c = Command::Find(conn);
if (!c) {
- LOGE("Could not find matching command");
+ ALOGE("Could not find matching command");
delete conn;
} else {
// Dispatch the command, it will handle cleaning up the connection
@@ -106,7 +106,7 @@ void DebugServer::start() {
}
}
- LOGD("DebugServer thread finished");
+ ALOGD("DebugServer thread finished");
}
} // end namespace WDS