From b48a2d4a8ed40024d38502db5aeabd3ab6876687 Mon Sep 17 00:00:00 2001 From: Leonard Grey Date: Fri, 16 Feb 2024 12:19:44 -0500 Subject: [PATCH] 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 --- src/processor/range_map.h | 2 +- src/processor/range_map_unittest.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/processor/range_map.h b/src/processor/range_map.h index 1499ff296..05c659758 100644 --- a/src/processor/range_map.h +++ b/src/processor/range_map.h @@ -40,7 +40,7 @@ #define PROCESSOR_RANGE_MAP_H__ -#include +#include #include diff --git a/src/processor/range_map_unittest.cc b/src/processor/range_map_unittest.cc index 1bf9af24e..568df3673 100644 --- a/src/processor/range_map_unittest.cc +++ b/src/processor/range_map_unittest.cc @@ -35,6 +35,7 @@ #include // Must come first #endif +#include #include #include @@ -504,7 +505,7 @@ static bool RunTests() { // The RangeMap's own count of objects should also match. if (range_map->GetCount() != stored_count) { 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()); return false;