Skip to content
Browse files

Fix debug lines.

Change-Id: I3b1e3b6787983e48620547e840a699928585e3ed
  • Loading branch information...
1 parent 957c3c4 commit 06873ff6b96850c35f5e398e2e294ccc6c39af61 @maniac103 maniac103 committed Aug 24, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/com/motorola/usb/UsbListener.java
View
7 src/com/motorola/usb/UsbListener.java
@@ -145,7 +145,6 @@ private void listenToSocket() throws IOException {
throw new IOException("Unexpected end of stream");
}
- Log.e(TAG, "Read " + count + " bytes");
int pos, start;
for (pos = 0, start = 0; pos < count; pos++) {
if (buffer[pos] == 0) {
@@ -157,7 +156,6 @@ private void listenToSocket() throws IOException {
}
private synchronized void closeSocket() {
- Log.e(TAG, "closeSocket()");
try {
if (mOutputStream != null) {
mOutputStream.close();
@@ -174,7 +172,6 @@ private synchronized void closeSocket() {
}
private synchronized void writeCommand(String cmd, String arg) {
- Log.e(TAG, "writeCommand " + cmd);
if (mOutputStream == null) {
Log.e(TAG, "No connection to usbd");
return;
@@ -186,6 +183,8 @@ private synchronized void writeCommand(String cmd, String arg) {
}
line += '\0';
+ Log.d(TAG, "Writing command " + line + " to usbd");
+
try {
mOutputStream.write(line.getBytes());
} catch (IOException e) {
@@ -213,7 +212,7 @@ public void run() {
}
public synchronized void stop() {
- Log.e(TAG, "stop()");
+ Log.d(TAG, "Stopping...");
mRunning = false;
if (mSocket != null) {
try {

0 comments on commit 06873ff

Please sign in to comment.
Something went wrong with that request. Please try again.