am ff41f149: am 363963d6: am de42d34c: Merge "logd: regression in log_strtok_r"
* commit 'ff41f149cc75d7719da1d8e688380ddeefa6f5a3':
logd: regression in log_strtok_r
diff --git a/logd/LogKlog.cpp b/logd/LogKlog.cpp
index 7d14648..4e0e896 100644
--- a/logd/LogKlog.cpp
+++ b/logd/LogKlog.cpp
@@ -68,6 +68,9 @@
continue;
}
if (!isdigit(c) && (c == ']')) {
+ if (first_period || (*s != ' ')) {
+ break;
+ }
return s;
}
}
@@ -75,7 +78,7 @@
}
// Like strtok_r with "\r\n" except that we look for log signatures (regex)
-// \(\(<[0-9]+>\)\([[] *[0-9]+[]]\)\{0,1\}\|[[] *[0-9]+[]]\)
+// \(\(<[0-9]+>\)\([[] *[0-9]+[.][0-9]+[]] \)\{0,1\}\|[[] *[0-9]+[.][0-9]+[]] \)
// and split if we see a second one without a newline.
#define SIGNATURE_MASK 0xF0