diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2014-10-30 12:01:43 -0400 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2014-10-30 16:02:28 +0000 |
commit | e0a352631d0cde19df1cd085e263b0e9f05e361a (patch) | |
tree | 2b4d8d8d3be27805a33a65a43112d1127c65c553 /tools/checkAPIs.pl | |
parent | 62831ba914ad9ab40bb5ce4d54aa8235116ab595 (diff) |
Tell the user which file __func__ was found in.
Change-Id: Ia69ceaf320cb97447f80a7c090efe6d36262a1c1
Reviewed-on: https://code.wireshark.org/review/5001
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Diffstat (limited to 'tools/checkAPIs.pl')
-rwxr-xr-x | tools/checkAPIs.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index ff31b68505..e5402cd3fe 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -2120,13 +2120,14 @@ while ($_ = $ARGV[0]) } if ($fileContents =~ m{ __func__ }xo) { - print STDERR "Error: __func__ is not portable, use G_STRFUNC\n"; + print STDERR "Error: Found __func__ (which is not portable, use G_STRFUNC) in " .$filename."\n"; $errorCount++; } if (($fileContents =~ m{ \$Id .* \$ }xo)) { - print STDERR "Warning: ".$filename." does have an SVN Id tag. Please remove !\n"; + print STDERR "Warning: ".$filename." has an SVN Id tag. Please remove it!\n"; } + # Remove all the C-comments $fileContents =~ s{ $CComment } []xog; |