From 0c10d9b700c8e2d3a9cfee9091a12c76b478d2c2 Mon Sep 17 00:00:00 2001 From: Anton Matkin Date: Tue, 8 Jul 2025 14:02:15 +0200 Subject: [PATCH] Improved the error generating script, so that it is a little more explicit Signed-off-by: Anton Matkin --- scripts/generate_errors.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate_errors.pl b/scripts/generate_errors.pl index 5e4fe38931..dab3a0c703 100755 --- a/scripts/generate_errors.pl +++ b/scripts/generate_errors.pl @@ -89,7 +89,7 @@ foreach my $file (@files) { $description =~ s/^\s+//; $description =~ s/\n( *\*)? */ /g; $description =~ s/\.?\s+$//; - push @matches, [$name, $value, $description, grep(/^.*private\/[^\/]+$/, $file)]; + push @matches, [$name, $value, $description, scalar($file =~ /^.*private\/[^\/]+$/)]; ++$found; } if ($found) {