[PATCH] D57676: [elfabi] Fix the type of the variable formated for error output

Petar Jovanovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 5 14:23:46 PST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL353225: [elfabi] Fix the type of the variable formated for error output (authored by petarj, committed by ).
Herald added a project: LLVM.

Changed prior to commit:
  https://reviews.llvm.org/D57676?vs=185012&id=185406#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57676/new/

https://reviews.llvm.org/D57676

Files:
  llvm/trunk/tools/llvm-elfabi/ELFObjHandler.cpp


Index: llvm/trunk/tools/llvm-elfabi/ELFObjHandler.cpp
===================================================================
--- llvm/trunk/tools/llvm-elfabi/ELFObjHandler.cpp
+++ llvm/trunk/tools/llvm-elfabi/ELFObjHandler.cpp
@@ -130,14 +130,16 @@
   if (Dyn.SONameOffset.hasValue() && *Dyn.SONameOffset >= Dyn.StrSize) {
     return createStringError(
         object_error::parse_failed,
-        "DT_SONAME string offset (0x%016x) outside of dynamic string table",
+        "DT_SONAME string offset (0x%016" PRIx64
+        ") outside of dynamic string table",
         *Dyn.SONameOffset);
   }
   for (uint64_t Offset : Dyn.NeededLibNames) {
     if (Offset >= Dyn.StrSize) {
       return createStringError(
           object_error::parse_failed,
-          "DT_NEEDED string offset (0x%016x) outside of dynamic string table",
+          "DT_NEEDED string offset (0x%016" PRIx64
+          ") outside of dynamic string table",
           Offset);
     }
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57676.185406.patch
Type: text/x-patch
Size: 962 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190205/0b3eec59/attachment.bin>


More information about the llvm-commits mailing list