| Index: PRESUBMIT.py
|
| diff --git a/PRESUBMIT.py b/PRESUBMIT.py
|
| index 15eaf642d901384bf100de782fce465603ef4bae..414cee8fe49ff67b01316bfd258887364262617b 100644
|
| --- a/PRESUBMIT.py
|
| +++ b/PRESUBMIT.py
|
| @@ -849,9 +849,12 @@ def _CheckSpamLogging(input_api, output_api):
|
| contents = input_api.ReadFile(f, 'rb')
|
| if re.search(r"\bD?LOG\s*\(\s*INFO\s*\)", contents):
|
| log_info.append(f.LocalPath())
|
| - if re.search(r"\bD?LOG_IF\s*\(\s*INFO\s*,", contents):
|
| + elif re.search(r"\bD?LOG_IF\s*\(\s*INFO\s*,", contents):
|
| log_info.append(f.LocalPath())
|
| - if re.search(r"\bf?printf\((stdout|stderr)", contents):
|
| +
|
| + if re.search(r"\bprintf\(", contents):
|
| + printf.append(f.LocalPath())
|
| + elif re.search(r"\bfprintf\((stdout|stderr)", contents):
|
| printf.append(f.LocalPath())
|
|
|
| if log_info:
|
|
|