diff --git a/client/ring_buffer_annotation_load_test_main.cc b/client/ring_buffer_annotation_load_test_main.cc index 12355f4b..96ed25e0 100644 --- a/client/ring_buffer_annotation_load_test_main.cc +++ b/client/ring_buffer_annotation_load_test_main.cc @@ -316,8 +316,10 @@ class RingBufferAnnotationSnapshot final { base::StringPiece str(reinterpret_cast(&bytes[0]), bytes.size()); if (!HexStringToInt(str, &next_value)) { - fprintf( - stderr, "Couldn't parse value: [%s]\n", str.as_string().c_str()); + fprintf(stderr, + "Couldn't parse value: [%.*s]\n", + base::checked_cast(bytes.size()), + bytes.data()); abort(); } if (value == std::numeric_limits::max()) {