NativeDaemonConnector: Improve bad list IPC diagnostics
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
@@ -259,8 +259,12 @@ final class NativeDaemonConnector implements Runnable {
|
|||||||
rdata[idx++] = line.substring(tok[0].length() + 1);
|
rdata[idx++] = line.substring(tok[0].length() + 1);
|
||||||
} else if (code == NativeDaemonConnector.ResponseCode.CommandOkay) {
|
} else if (code == NativeDaemonConnector.ResponseCode.CommandOkay) {
|
||||||
if (LOCAL_LOGD) Log.d(TAG, String.format("List terminated with {%s}", line));
|
if (LOCAL_LOGD) Log.d(TAG, String.format("List terminated with {%s}", line));
|
||||||
if (i != rsp.size()) {
|
int last = rsp.size() -1;
|
||||||
Log.w(TAG, String.format("Recv'd %d lines after list term", (rsp.size()-i)));
|
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;
|
return rdata;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user