From 353e4cd58528e7dea9d7d56b6b562be0aef1be81 Mon Sep 17 00:00:00 2001 From: "primiano@chromium.org" Date: Mon, 13 Apr 2015 17:45:17 +0000 Subject: Microdump processor: be more tolerant for different logcat formats The current processor implementation is grepping for /google-breakpad( in the logcat lines, to filter out microdump lines, which by default look like this: W/google-breakpad( 3728): -----BEGIN BREAKPAD MICRODUMP----- Turns out that logcat format can vary, when passing optional arguments, and produce something like the following: 04-13 12:30:35.563 6531 6531 W google-breakpad: -----BEGIN ... In the latter case, the "/google-breakpad(" filter is too aggressive. This change is relaxing it, so it is compatible also with non-default logcat arguments. BUG=640 R=mmandlis@chromium.org Review URL: https://breakpad.appspot.com/2864002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1442 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/processor/microdump.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/processor/microdump.cc') diff --git a/src/processor/microdump.cc b/src/processor/microdump.cc index 91239855..bf628552 100644 --- a/src/processor/microdump.cc +++ b/src/processor/microdump.cc @@ -49,7 +49,7 @@ #include "processor/range_map-inl.h" namespace { -static const char kGoogleBreakpadKey[] = "/google-breakpad("; +static const char kGoogleBreakpadKey[] = "google-breakpad"; static const char kMicrodumpBegin[] = "-----BEGIN BREAKPAD MICRODUMP-----"; static const char kMicrodumpEnd[] = "-----END BREAKPAD MICRODUMP-----"; static const char kOsKey[] = ": O "; -- cgit v1.2.1