Signed-off-by: Chao Liu <[email protected]>
---
scripts/checkpatch.pl | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 3a9557417f..43d3db9f38 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1985,6 +1985,11 @@ sub process {
ERROR("adding a line without newline at end of file\n"
. $herecurr);
}
+# check for tcg_gen_print is present in submitted patches
+ if ($rawline =~ /^\+.*\btcg_gen_print\s*\(/) {
+ WARN("tcg_gen_print(): debug-only, remove all calls
before patch submission.\n" . $herecurr);
+ }
+
# check for RCS/CVS revision markers
if ($rawline =~ /^\+.*\$(Revision|Log|Id)(?:\$|\b)/) {
ERROR("CVS style keyword markers, these will _not_ be
updated\n". $herecurr);
--
2.52.0