Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix debug lines.

Change-Id: I3b1e3b6787983e48620547e840a699928585e3ed
  • Loading branch information...
commit 06873ff6b96850c35f5e398e2e294ccc6c39af61 1 parent 957c3c4
maniac103 maniac103 authored

Showing 1 changed file with 3 additions and 4 deletions. Show diff stats Hide diff stats

  1. +3 4 src/com/motorola/usb/UsbListener.java
7 src/com/motorola/usb/UsbListener.java
@@ -145,7 +145,6 @@ private void listenToSocket() throws IOException {
145 145 throw new IOException("Unexpected end of stream");
146 146 }
147 147
148   - Log.e(TAG, "Read " + count + " bytes");
149 148 int pos, start;
150 149 for (pos = 0, start = 0; pos < count; pos++) {
151 150 if (buffer[pos] == 0) {
@@ -157,7 +156,6 @@ private void listenToSocket() throws IOException {
157 156 }
158 157
159 158 private synchronized void closeSocket() {
160   - Log.e(TAG, "closeSocket()");
161 159 try {
162 160 if (mOutputStream != null) {
163 161 mOutputStream.close();
@@ -174,7 +172,6 @@ private synchronized void closeSocket() {
174 172 }
175 173
176 174 private synchronized void writeCommand(String cmd, String arg) {
177   - Log.e(TAG, "writeCommand " + cmd);
178 175 if (mOutputStream == null) {
179 176 Log.e(TAG, "No connection to usbd");
180 177 return;
@@ -186,6 +183,8 @@ private synchronized void writeCommand(String cmd, String arg) {
186 183 }
187 184 line += '\0';
188 185
  186 + Log.d(TAG, "Writing command " + line + " to usbd");
  187 +
189 188 try {
190 189 mOutputStream.write(line.getBytes());
191 190 } catch (IOException e) {
@@ -213,7 +212,7 @@ public void run() {
213 212 }
214 213
215 214 public synchronized void stop() {
216   - Log.e(TAG, "stop()");
  215 + Log.d(TAG, "Stopping...");
217 216 mRunning = false;
218 217 if (mSocket != null) {
219 218 try {

0 comments on commit 06873ff

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