diff options
Diffstat (limited to 'logd/LogReader.cpp')
-rw-r--r-- | logd/LogReader.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/logd/LogReader.cpp b/logd/LogReader.cpp index af19279a4..feb105f76 100644 --- a/logd/LogReader.cpp +++ b/logd/LogReader.cpp | |||
@@ -15,6 +15,7 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include <ctype.h> | 17 | #include <ctype.h> |
18 | #include <inttypes.h> | ||
18 | #include <poll.h> | 19 | #include <poll.h> |
19 | #include <sys/prctl.h> | 20 | #include <sys/prctl.h> |
20 | #include <sys/socket.h> | 21 | #include <sys/socket.h> |
@@ -192,6 +193,12 @@ bool LogReader::onDataAvailable(SocketClient* cli) { | |||
192 | } | 193 | } |
193 | } | 194 | } |
194 | 195 | ||
196 | android::prdebug( | ||
197 | "logdr: UID=%d GID=%d PID=%d %c tail=%lu logMask=%x pid=%d " | ||
198 | "start=%" PRIu64 "ns timeout=%" PRIu64 "ns\n", | ||
199 | cli->getUid(), cli->getGid(), cli->getPid(), nonBlock ? 'n' : 'b', tail, | ||
200 | logMask, (int)pid, sequence.nsec(), timeout); | ||
201 | |||
195 | FlushCommand command(*this, nonBlock, tail, logMask, pid, sequence, timeout); | 202 | FlushCommand command(*this, nonBlock, tail, logMask, pid, sequence, timeout); |
196 | 203 | ||
197 | // Set acceptable upper limit to wait for slow reader processing b/27242723 | 204 | // Set acceptable upper limit to wait for slow reader processing b/27242723 |