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