diff options
author | San Mehat <san@google.com> | 2010-02-17 09:03:29 -0800 |
---|---|---|
committer | San Mehat <san@google.com> | 2010-02-17 09:05:16 -0800 |
commit | 4086f752e1e3f093396b4eb6c0075dccb0c65983 (patch) | |
tree | e5e00b1814827a41895fdc0278069a32e4351941 /services | |
parent | fea87ae1a742c94c50573dcdd50f07e6d56c8015 (diff) | |
download | frameworks_base-4086f752e1e3f093396b4eb6c0075dccb0c65983.zip frameworks_base-4086f752e1e3f093396b4eb6c0075dccb0c65983.tar.gz frameworks_base-4086f752e1e3f093396b4eb6c0075dccb0c65983.tar.bz2 |
NativeDaemonConnector: Improve bad list IPC diagnostics
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/NativeDaemonConnector.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/services/java/com/android/server/NativeDaemonConnector.java b/services/java/com/android/server/NativeDaemonConnector.java index cf083c0..ceae973 100644 --- a/services/java/com/android/server/NativeDaemonConnector.java +++ b/services/java/com/android/server/NativeDaemonConnector.java @@ -259,8 +259,12 @@ final class NativeDaemonConnector implements Runnable { rdata[idx++] = line.substring(tok[0].length() + 1); } else if (code == NativeDaemonConnector.ResponseCode.CommandOkay) { if (LOCAL_LOGD) Log.d(TAG, String.format("List terminated with {%s}", line)); - if (i != rsp.size()) { - Log.w(TAG, String.format("Recv'd %d lines after list term", (rsp.size()-i))); + int last = rsp.size() -1; + if (i != last) { + Log.w(TAG, String.format("Recv'd %d lines after end of list {%s}", (last-i), cmd)); + for (int j = i; j <= last ; j++) { + Log.w(TAG, String.format("ExtraData <%s>", rsp.get(i))); + } } return rdata; } else { |