diff options
Diffstat (limited to 'Source/WebKit/android/wds/client/main.cpp')
-rw-r--r-- | Source/WebKit/android/wds/client/main.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/WebKit/android/wds/client/main.cpp b/Source/WebKit/android/wds/client/main.cpp index 276affe..1c7d856 100644 --- a/Source/WebKit/android/wds/client/main.cpp +++ b/Source/WebKit/android/wds/client/main.cpp @@ -74,7 +74,7 @@ int main(int argc, char** argv) { Device::DeviceType type = Device::NONE; if (argc <= 1) { - ALOGE("wdsclient takes at least 1 argument"); + LOGE("wdsclient takes at least 1 argument"); return 1; } else { // Parse the options, look for -e or -d to choose a device. @@ -94,7 +94,7 @@ int main(int argc, char** argv) { } } if (optind == argc) { - ALOGE("No command specified"); + LOGE("No command specified"); return 1; } } @@ -109,10 +109,10 @@ int main(int argc, char** argv) { // No device specified and more than one connected, bail if (type == Device::NONE && devices.size() > 1) { - ALOGE("More than one device/emulator, please specify with -e or -d"); + LOGE("More than one device/emulator, please specify with -e or -d"); return 1; } else if (devices.size() == 0) { - ALOGE("No devices connected"); + LOGE("No devices connected"); return 1; } @@ -131,23 +131,23 @@ int main(int argc, char** argv) { } if (!device) { - ALOGE("No device found!"); + LOGE("No device found!"); return 1; } // Forward tcp:9999 if (!device->sendRequest("forward:tcp:" PORT_STR ";tcp:" PORT_STR)) { - ALOGE("Failed to send forwarding request"); + LOGE("Failed to send forwarding request"); return 1; } - ALOGV("Connecting to localhost port " PORT_STR); + LOGV("Connecting to localhost port " PORT_STR); const char* command = argv[optind]; int commandLen = strlen(command); #define WDS_COMMAND_LENGTH 4 if (commandLen != WDS_COMMAND_LENGTH) { - ALOGE("Commands must be 4 characters '%s'", command); + LOGE("Commands must be 4 characters '%s'", command); return 1; } |