Commit cd427d98 authored by Adam Klein's avatar Adam Klein Committed by V8 LUCI CQ

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/+/3608119Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80193}
parent 7a90c320
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment