[tools 3/5] testbot/LogUtils: Add the ToFh suffix to _WriteLogErrors().

Francois Gouget fgouget at codeweavers.com
Tue Jan 19 11:55:59 CST 2021


This way its name is consistent with LoadLogErrorsFromFh().

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 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 17be624e..30038cf6 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);
 }
 
 
-- 
2.20.1




More information about the wine-devel mailing list