Fix string format specifier

Split out from https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5300127/1..4/src/processor/range_map_unittest.cc#b507

Bug: None
Change-Id: Iedc8508b6c123a54fdd1de2e2719dcd70adb03a6
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/5300128
Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
This commit is contained in:
Leonard Grey 2024-02-16 12:19:44 -05:00
parent a1169061a8
commit b48a2d4a8e
2 changed files with 3 additions and 2 deletions

View file

@ -40,7 +40,7 @@
#define PROCESSOR_RANGE_MAP_H__ #define PROCESSOR_RANGE_MAP_H__
#include <cstdint> #include <stdint.h>
#include <map> #include <map>

View file

@ -35,6 +35,7 @@
#include <config.h> // Must come first #include <config.h> // Must come first
#endif #endif
#include <inttypes.h>
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
@ -504,7 +505,7 @@ static bool RunTests() {
// The RangeMap's own count of objects should also match. // The RangeMap's own count of objects should also match.
if (range_map->GetCount() != stored_count) { if (range_map->GetCount() != stored_count) {
fprintf(stderr, "FAILED: stored object count doesn't match GetCount, " fprintf(stderr, "FAILED: stored object count doesn't match GetCount, "
"expected %d, observed %ld\n", "expected %d, observed %" PRId64 "\n",
stored_count, range_map->GetCount()); stored_count, range_map->GetCount());
return false; return false;