summaryrefslogtreecommitdiffstats
path: root/logcat/logcat.cpp
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-03-21 13:12:16 -0700
committerMark Salyzyn <salyzyn@google.com>2014-03-21 15:43:31 -0700
commit22e287df0dfbc6e10c02f570d2fc0c42a2a6b7aa (patch)
tree116a1e1e60ac9bea738373f730205a4613c91c41 /logcat/logcat.cpp
parentee212d0053c6c8801dbd382d24c776040c4f8f0e (diff)
downloadsystem_core-22e287df0dfbc6e10c02f570d2fc0c42a2a6b7aa.zip
system_core-22e287df0dfbc6e10c02f570d2fc0c42a2a6b7aa.tar.gz
system_core-22e287df0dfbc6e10c02f570d2fc0c42a2a6b7aa.tar.bz2
logcat: white and blacklist failure
- logcat improperly squashes out count - logcat test enhanced to catch failure - logd places entries in ascending sorted order Change-Id: If39d8e2c40852b520c98e7840034ab63c2538e5d
Diffstat (limited to 'logcat/logcat.cpp')
-rw-r--r--logcat/logcat.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/logcat/logcat.cpp b/logcat/logcat.cpp
index 5960609..5a80efe 100644
--- a/logcat/logcat.cpp
+++ b/logcat/logcat.cpp
@@ -807,7 +807,10 @@ int main(int argc, char **argv)
// squash out the byte count
cp = buf;
if (!truncated) {
- while (isdigit(*cp) || (*cp == '\n')) {
+ while (isdigit(*cp)) {
+ ++cp;
+ }
+ if (*cp == '\n') {
++cp;
}
}