mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-14 01:08:01 +08:00
Fix StringPiece compile issue in Chromium.
Change-Id: I5a29f690a4512252d0d5730492f7fd4cec16ffaa Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/4262547 Commit-Queue: Justin Cohen <justincohen@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
04b2ab5bba
commit
70e0f92153
@ -316,8 +316,10 @@ class RingBufferAnnotationSnapshot final {
|
||||
base::StringPiece str(reinterpret_cast<const char*>(&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<int>(bytes.size()),
|
||||
bytes.data());
|
||||
abort();
|
||||
}
|
||||
if (value == std::numeric_limits<int>::max()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user