Changeset 205483 in webkit


Ignore:
Timestamp:
Sep 6, 2016 9:24:02 AM (8 years ago)
Author:
Michael Catanzaro
Message:

"Redundant argument in sprintf" warning spam from prepare-ChangeLog
https://bugs.webkit.org/show_bug.cgi?id=161606

Reviewed by Darin Adler.

Avoid extra arguments in call to sprintf, hopefully without introducing new warnings this
time.

  • Scripts/prepare-ChangeLog:

(statusDescription):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r205480 r205483  
     12016-09-06  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        "Redundant argument in sprintf" warning spam from prepare-ChangeLog
     4        https://bugs.webkit.org/show_bug.cgi?id=161606
     5
     6        Reviewed by Darin Adler.
     7
     8        Avoid extra arguments in call to sprintf, hopefully without introducing new warnings this
     9        time.
     10
     11        * Scripts/prepare-ChangeLog:
     12        (statusDescription):
     13
    1142016-09-06  Youenn Fablet  <youenn@apple.com>
    215
  • trunk/Tools/Scripts/prepare-ChangeLog

    r205478 r205483  
    23262326
    23272327    my %svn = (
    2328         "A" => defined $original ? " Copied from \%s." : " Added.",
     2328        "A" => defined $original ? sprintf(" Copied from \%s.", $original) : " Added.",
    23292329        "D" => " Removed.",
    23302330        "M" => "",
    2331         "R" => defined $original ? " Replaced with \%s." : " Replaced.",
     2331        "R" => defined $original ? sprintf(" Replaced with \%s.", $original) : " Replaced.",
    23322332        " " => "",
    23332333    );
     
    23352335    my %git = %svn;
    23362336    $git{"A"} = " Added.";
    2337     $git{"C"} = " Copied from \%s.";
    2338     $git{"R"} = " Renamed from \%s.";
     2337    if (defined $original) {
     2338        $git{"C"} = sprintf(" Copied from \%s.", $original);
     2339        $git{"R"} = sprintf(" Renamed from \%s.", $original);
     2340    }
    23392341
    23402342    my $description;
    2341     $description = sprintf($svn{$status}, $original) if isSVN() && exists $svn{$status};
    2342     $description = sprintf($git{$status}, $original) if isGit() && exists $git{$status};
     2343    $description = $svn{$status} if isSVN() && exists $svn{$status};
     2344    $description = $git{$status} if isGit() && exists $git{$status};
    23432345    return unless defined $description;
    23442346
Note: See TracChangeset for help on using the changeset viewer.