aboutsummaryrefslogtreecommitdiffstats
path: root/lib/DebugInfo/DWARFDebugLine.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-11-05 16:01:13 +0000
committerStephen Hines <srhines@google.com>2011-11-14 09:11:51 -0800
commit51c66e89945c9a8339a1a8129689e79f18bfdf95 (patch)
tree5c894eb9caa669404810525dfdafd6692772c574 /lib/DebugInfo/DWARFDebugLine.cpp
parentd10c7a883a19cfbeca7f8b5240638d8db05b4e56 (diff)
downloadexternal_llvm-51c66e89945c9a8339a1a8129689e79f18bfdf95.tar.gz
external_llvm-51c66e89945c9a8339a1a8129689e79f18bfdf95.tar.bz2
external_llvm-51c66e89945c9a8339a1a8129689e79f18bfdf95.zip
Audited all the format strings in libDebugInfo and fixed those that didn't match the types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugLine.cpp')
-rw-r--r--lib/DebugInfo/DWARFDebugLine.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/DebugInfo/DWARFDebugLine.cpp b/lib/DebugInfo/DWARFDebugLine.cpp
index 0248ad3fcb..117fa31aa8 100644
--- a/lib/DebugInfo/DWARFDebugLine.cpp
+++ b/lib/DebugInfo/DWARFDebugLine.cpp
@@ -41,8 +41,9 @@ void DWARFDebugLine::Prologue::dump(raw_ostream &OS) const {
"----------------\n";
for (uint32_t i = 0; i < FileNames.size(); ++i) {
const FileNameEntry& fileEntry = FileNames[i];
- OS << format("file_names[%3u] %4u ", i+1, fileEntry.DirIdx)
- << format("0x%8.8x 0x%8.8x ", fileEntry.ModTime, fileEntry.Length)
+ OS << format("file_names[%3u] %4" PRIu64 " ", i+1, fileEntry.DirIdx)
+ << format("0x%8.8" PRIx64 " 0x%8.8" PRIx64 " ",
+ fileEntry.ModTime, fileEntry.Length)
<< fileEntry.Name << '\n';
}
}