From: Simon Dardis Date: Mon, 7 Aug 2017 13:30:03 +0000 (+0000) Subject: [DebugInfo][DWARF] Use PRIx64 explicitly in output. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec4ea99766971478a4084ac7170b148ca044c4c0;p=platform%2Fupstream%2Fllvm.git [DebugInfo][DWARF] Use PRIx64 explicitly in output. llvm-svn: 310253 --- diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index e840944..bb392d8 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -136,13 +136,13 @@ dumpDWARFv5StringOffsetsSection(raw_ostream &OS, StringRef SectionName, uint64_t StringOffset = StrOffsetExt.getRelocatedValue(EntrySize, &Offset); if (Format == DWARF32) { - OS << format("%8.8x ", StringOffset); + OS << format("%8.8" PRIx64 " ", StringOffset); uint32_t StringOffset32 = (uint32_t)StringOffset; const char *S = StrData.getCStr(&StringOffset32); if (S) OS << format("\"%s\"", S); } else - OS << format("%16.16x ", StringOffset); + OS << format("%16.16" PRIx64 " ", StringOffset); OS << "\n"; } }