diff options
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 059c032d8882..7f1804e052f2 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -4854,7 +4854,8 @@ sub process { | |||
| 4854 | # check for seq_printf uses that could be seq_puts | 4854 | # check for seq_printf uses that could be seq_puts |
| 4855 | if ($sline =~ /\bseq_printf\s*\(.*"\s*\)\s*;\s*$/) { | 4855 | if ($sline =~ /\bseq_printf\s*\(.*"\s*\)\s*;\s*$/) { |
| 4856 | my $fmt = get_quoted_string($line, $rawline); | 4856 | my $fmt = get_quoted_string($line, $rawline); |
| 4857 | if ($fmt ne "" && $fmt !~ /[^\\]\%/) { | 4857 | $fmt =~ s/%%//g; |
| 4858 | if ($fmt !~ /%/) { | ||
| 4858 | if (WARN("PREFER_SEQ_PUTS", | 4859 | if (WARN("PREFER_SEQ_PUTS", |
| 4859 | "Prefer seq_puts to seq_printf\n" . $herecurr) && | 4860 | "Prefer seq_puts to seq_printf\n" . $herecurr) && |
| 4860 | $fix) { | 4861 | $fix) { |
