Commit 1723003c authored by Amol Bhave's avatar Amol Bhave Committed by Facebook Github Bot

Fix printf format specifier in Elf.h

Summary:
The format specifier for printf should be %zu to take into account
32bit machines.

Reviewed By: Orvid

Differential Revision: D9665574

fbshipit-source-id: e7019c1deba80addef36ea8f6ebff48b45eceefa
parent f143a3c7
...@@ -246,7 +246,7 @@ class ElfFile { ...@@ -246,7 +246,7 @@ class ElfFile {
snprintf( snprintf(
msg, msg,
sizeof(msg), sizeof(msg),
"Offset (%lu + %lu) is not contained within our mmapped" "Offset (%zu + %zu) is not contained within our mmapped"
" file (%s) of length %zu", " file (%s) of length %zu",
offset, offset,
sizeof(T), sizeof(T),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment