Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Unified Diff: PRESUBMIT.py

Issue 99653004: Catch printf() in CheckSpamLogging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 15eaf642d901384bf100de782fce465603ef4bae..bd79bd05ade22c25438f5a9dc1ea35ca057544af 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -851,7 +851,9 @@ def _CheckSpamLogging(input_api, output_api):
log_info.append(f.LocalPath())
if re.search(r"\bD?LOG_IF\s*\(\s*INFO\s*,", contents):
M-A Ruel 2013/12/02 21:06:09 elif
jln (very slow on Chromium) 2013/12/02 21:38:06 Done.
log_info.append(f.LocalPath())
- if re.search(r"\bf?printf\((stdout|stderr)", contents):
+ if re.search(r"\bprintf\(", contents):
M-A Ruel 2013/12/02 21:06:09 insert a line to make it clear they are not doing
jln (very slow on Chromium) 2013/12/02 21:38:06 Done.
+ printf.append(f.LocalPath())
+ if re.search(r"\bfprintf\((stdout|stderr)", contents):
M-A Ruel 2013/12/02 21:06:09 elif
jln (very slow on Chromium) 2013/12/02 21:38:06 Done.
printf.append(f.LocalPath())
if log_info:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698