From 655c542dc8699fd6cb5c7b6469bea278bf7ae764 Mon Sep 17 00:00:00 2001 From: Chih-Hung Hsieh Date: Wed, 7 Jun 2017 15:52:13 -0700 Subject: [PATCH] Find target keywords in the first 100 lines. Bug: 62416199 Test: warn.py build.log Change-Id: I8c5ef310758fdd44519aeb1efe2f0bd92fe1ac87 --- tools/warn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/warn.py b/tools/warn.py index be659b8e7..44ad368f8 100755 --- a/tools/warn.py +++ b/tools/warn.py @@ -2427,7 +2427,7 @@ def parse_input_file(infile): if warning_pattern.match(line): line = normalize_warning_line(line) warning_lines.add(line) - elif line_counter < 50: + elif line_counter < 100: # save a little bit of time by only doing this for the first few lines line_counter += 1 m = re.search('(?<=^PLATFORM_VERSION=).*', line)