LibCore: Display the correct allocation size in the debug line
Someone named Karol forgot to update this line in #10205..
This commit is contained in:
parent
01370136ee
commit
2a461704c4
Notes:
sideshowbarker
2024-07-18 02:52:08 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/2a461704c40 Pull-request: https://github.com/SerenityOS/serenity/pull/10415
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ ByteBuffer IODevice::read(size_t max_size)
|
|||
auto size = min(max_size, m_buffered_data.size());
|
||||
auto buffer_result = ByteBuffer::create_uninitialized(size);
|
||||
if (!buffer_result.has_value()) {
|
||||
dbgln("IODevice::read: Not enough memory to allocate a buffer of {} bytes", max_size);
|
||||
dbgln("IODevice::read: Not enough memory to allocate a buffer of {} bytes", size);
|
||||
return {};
|
||||
}
|
||||
auto buffer = buffer_result.release_value();
|
||||
|
|
Loading…
Add table
Reference in a new issue