HomeFreeBSD

Fix cstyle.pl warnings

Description

Fix cstyle.pl warnings

As of perl v5.22.1 the following warnings are generated:

  • Redundant argument in printf at scripts/cstyle.pl line 194
  • Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\S{ <-- HERE / at scripts/cstyle.pl line 608.

They have been addressed by escaping the left braces and by
providing the correct number of arguments to printf based on
the fmt specifier set by the verbose option.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4723

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jun 3 2016, 4:08 PM
Parents
rG1eeb4562a72a: Implementation of AVX2 optimized Fletcher-4
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGf866a4ea1f18: Fix cstyle.pl warnings (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jun 3 2016, 4:08 PM