Francois Gouget : testbot/LogUtils: Add the ToFh suffix to _WriteLogErrors().
Alexandre Julliard
julliard at winehq.org
Tue Jan 19 15:31:28 CST 2021
Module: tools
Branch: master
Commit: 1443b2db4225fbb16e9b64761183ab7c3434f098
URL: https://source.winehq.org/git/tools.git/?a=commit;h=1443b2db4225fbb16e9b64761183ab7c3434f098
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Tue Jan 19 18:55:59 2021 +0100
testbot/LogUtils: Add the ToFh suffix to _WriteLogErrors().
This way its name is consistent with LoadLogErrorsFromFh().
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
testbot/lib/WineTestBot/LogUtils.pm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/testbot/lib/WineTestBot/LogUtils.pm b/testbot/lib/WineTestBot/LogUtils.pm
index 17be624..30038cf 100644
--- a/testbot/lib/WineTestBot/LogUtils.pm
+++ b/testbot/lib/WineTestBot/LogUtils.pm
@@ -964,7 +964,7 @@ sub LoadLogErrors($)
=pod
=over 12
-=item C<_WriteLogErrors()>
+=item C<_WriteLogErrorsToFh()>
Writes the LogInfo structure in text form to the specified file descriptor.
See _LoadLogErrors() for the format of the errors file.
@@ -972,7 +972,7 @@ See _LoadLogErrors() for the format of the errors file.
=back
=cut
-sub _WriteLogErrors($$)
+sub _WriteLogErrorsToFh($$)
{
my ($Fh, $LogInfo) = @_;
@@ -1000,7 +1000,7 @@ sub _SaveLogErrors($)
my $ErrorsPath = "$LogInfo->{LogPath}.errors";
if (open(my $ErrorsFile, ">", $ErrorsPath))
{
- _WriteLogErrors($ErrorsFile, $LogInfo);
+ _WriteLogErrorsToFh($ErrorsFile, $LogInfo);
close($ErrorsFile);
# Set the mtime so Janitor reaps both at the same time
@@ -1020,7 +1020,7 @@ sub _DumpErrors($$)
next if ($Key =~ /^(?:ErrGroupNames|ErrGroups|NewCount)$/);
print STDERR "+ $Key $LogInfo->{$Key}\n";
}
- _WriteLogErrors(*STDERR, $LogInfo);
+ _WriteLogErrorsToFh(*STDERR, $LogInfo);
}
More information about the wine-cvs
mailing list