Skip to content

Commit

Permalink
Use fmt::println instead of std::cerr (#743)
Browse files Browse the repository at this point in the history
use fmt::println instead of std::cerr
  • Loading branch information
connortsui20 authored Sep 17, 2024
1 parent bba8cf3 commit 69f851a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/buffer/buffer_pool_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ auto BufferPoolManager::WritePage(page_id_t page_id, AccessType access_type) ->
auto guard_opt = CheckedWritePage(page_id, access_type);

if (!guard_opt.has_value()) {
std::cerr << fmt::format("\n`CheckedPageWrite` failed to bring in page {}\n\n", page_id);
fmt::println(stderr, "\n`CheckedWritePage` failed to bring in page {}\n", page_id);
std::abort();
}

Expand All @@ -266,7 +266,7 @@ auto BufferPoolManager::ReadPage(page_id_t page_id, AccessType access_type) -> R
auto guard_opt = CheckedReadPage(page_id, access_type);

if (!guard_opt.has_value()) {
std::cerr << fmt::format("\n`CheckedPageRead` failed to bring in page {}\n\n", page_id);
fmt::println(stderr, "\n`CheckedReadPage` failed to bring in page {}\n", page_id);
std::abort();
}

Expand Down

0 comments on commit 69f851a

Please sign in to comment.