Correct printf format in wasm-code-manager.cc to fix gcc builds
Change-Id: Idca60865da669dc90112eb04bdd464041fc447f3 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3608119 Reviewed-by: Clemens Backes <clemensb@chromium.org> Commit-Queue: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/main@{#80193}
This commit is contained in:
parent
7a90c32032
commit
cd427d98e6
@ -2192,7 +2192,7 @@ base::AddressRegion WasmCodeManager::AllocateAssemblerBufferSpace(int size) {
|
||||
PageAllocator::kNoAccess);
|
||||
if (V8_UNLIKELY(!mapped)) {
|
||||
constexpr auto format = base::StaticCharVector(
|
||||
"Cannot allocate %zu more bytes for assembler buffers");
|
||||
"Cannot allocate %d more bytes for assembler buffers");
|
||||
constexpr int kMaxMessageLength =
|
||||
format.size() - 3 + std::numeric_limits<size_t>::digits10;
|
||||
base::EmbeddedVector<char, kMaxMessageLength + 1> message;
|
||||
|
Loading…
Reference in New Issue
Block a user