[Tools 2/2] winetest/dissect: Remove some pointless sprintfs.

Francois Gouget fgouget at codeweavers.com
Tue Mar 21 19:07:34 CDT 2017


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 winetest/dissect | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/winetest/dissect b/winetest/dissect
index bd34daa..03f4fd2 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -139,9 +139,9 @@ $_ = <IN>;
 my $box = create_box( "version", "version", "Version information for $tag" );
 $box->{data} .= "<h2>Build version</h2>\n";
 $box->{data} .= "<table class=\"output\">\n";
-$box->{data} .= sprintf "<tr><td>Build</td><td><a title=\"%s\" href=\"$gitweb/?a=shortlog;h=%s\">%s</a></td></tr>\n", $testbuild, $testbuild, $shortbuild;
+$box->{data} .= "<tr><td>Build</td><td><a title=\"$testbuild\" href=\"$gitweb/?a=shortlog;h=$testbuild\">$shortbuild</a></td></tr>\n";
 $box->{data} .= "<tr><td>Tag</td><td><a title=\"Full report\" href=\"report.html\">$tag</a></td></tr></table>\n";
-$box->{data} .= sprintf "<div class=\"output\"> </div>\n";
+$box->{data} .= "<div class=\"output\"> </div>\n";
 while (($_ = <IN>) =~ s/^    //)
 {
     chomp;
@@ -310,7 +310,7 @@ while (<IN>) {
         }
         if ($3 eq "skipped")
         {
-            $testbox->{data} .= sprintf "<div class=\"test result skipped\">Skipped by user request.</div>\n";
+            $testbox->{data} .= "<div class=\"test result skipped\">Skipped by user request.</div>\n";
             print SUM "- $dll $unit skipped - - - $source $rev\n";
             $dll = undef;
             mydie "too many tests skipped by user request\n" if ++$user_skips > $maxuserskips;
-- 
2.11.0



More information about the wine-patches mailing list