Skip to content

Commit

Permalink
Use PRIx64 for format output of uint64_t as hex
Browse files Browse the repository at this point in the history
  • Loading branch information
kovdan01 committed Apr 3, 2024
1 parent d6d9b54 commit f5e0db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/tools/llvm-readobj/ELFDumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5165,8 +5165,8 @@ static bool printAArch64PAuthABICoreInfo(raw_ostream &OS, uint32_t DataSize,
return Desc;
}();

OS << format("platform 0x%x (%s), version 0x%x", Platform, PlatformDesc,
Version);
OS << format("platform 0x%" PRIx64 " (%s), version 0x%" PRIx64, Platform,
PlatformDesc, Version);
if (!VersionDesc.empty())
OS << format(" (%s)", VersionDesc.c_str());

Expand Down

0 comments on commit f5e0db1

Please sign in to comment.