diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-12-19 08:46:28 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-12-19 08:46:28 +0000 |
commit | 722f58c6b338284cd6a9f88543b7f7984b3c2da9 (patch) | |
tree | 5a7884cf1088603b1dbe1027759a62efc839ce38 /lib/IR/GCOV.cpp | |
parent | 115654f15c1060af5f657a8aa6494a8e572c163c (diff) | |
download | llvm-722f58c6b338284cd6a9f88543b7f7984b3c2da9.tar.gz llvm-722f58c6b338284cd6a9f88543b7f7984b3c2da9.tar.bz2 llvm-722f58c6b338284cd6a9f88543b7f7984b3c2da9.tar.xz |
GCOV.cpp: Fix format strings, %lf. Don't use %lf to double.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197663 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/GCOV.cpp')
-rw-r--r-- | lib/IR/GCOV.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/IR/GCOV.cpp b/lib/IR/GCOV.cpp index 140d259c2a..e39842c2fd 100644 --- a/lib/IR/GCOV.cpp +++ b/lib/IR/GCOV.cpp @@ -636,15 +636,15 @@ void FileInfo::printUncondBranchInfo(raw_fd_ostream &OS, uint32_t &EdgeNo, // printCoverage - Print generic coverage info used by both printFuncCoverage // and printFileCoverage. void FileInfo::printCoverage(const GCOVCoverage &Coverage) const { - outs() << format("Lines executed:%.2lf%% of %u\n", + outs() << format("Lines executed:%.2f%% of %u\n", double(Coverage.LinesExec)*100/Coverage.LogicalLines, Coverage.LogicalLines); if (Options.BranchInfo) { if (Coverage.Branches) { - outs() << format("Branches executed:%.2lf%% of %u\n", + outs() << format("Branches executed:%.2f%% of %u\n", double(Coverage.BranchesExec)*100/Coverage.Branches, Coverage.Branches); - outs() << format("Taken at least once:%.2lf%% of %u\n", + outs() << format("Taken at least once:%.2f%% of %u\n", double(Coverage.BranchesTaken)*100/Coverage.Branches, Coverage.Branches); } else { |