Fix int64_t format in fprintf by using PRIx64.

Change-Id: Ic03ecc055c4eb097fbaaf8c8cd2c0a68d5aea8a0
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3826785
Reviewed-by: Joshua Peraza <jperaza@chromium.org>
This commit is contained in:
Zequan Wu 2022-08-11 15:00:12 -07:00 committed by Joshua Peraza
parent c44d14ac89
commit a7a8b9c300

View file

@ -956,7 +956,8 @@ void CompilationUnit::ProcessDIEs() {
if (!dieptr) {
fprintf(stderr,
"An error happens when skipping a DIE's attributes at offset "
"%lx. Stopped processing following DIEs in this CU.\n",
"0x%" PRIx64
". Stopped processing following DIEs in this CU.\n",
absolute_offset);
exit(1);
}
@ -964,8 +965,8 @@ void CompilationUnit::ProcessDIEs() {
dieptr = ProcessDIE(absolute_offset, dieptr, abbrev);
if (!dieptr) {
fprintf(stderr,
"An error happens when processing a DIE at offset %lx. Stopped "
"processing following DIEs in this CU.\n",
"An error happens when processing a DIE at offset 0x%" PRIx64
". Stopped processing following DIEs in this CU.\n",
absolute_offset);
exit(1);
}