From ed4c2f2f8ea59295edceca77bf308df5de6872d6 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Sun, 11 Dec 2022 17:49:00 +0100 Subject: LibCore: Rename `Stream::read_all` to `read_until_eof` This generally seems like a better name, especially if we somehow also need a better name for "read the entire buffer, but not the entire file" somewhere down the line. --- Userland/Utilities/dmesg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Utilities/dmesg.cpp') diff --git a/Userland/Utilities/dmesg.cpp b/Userland/Utilities/dmesg.cpp index 05181b3246..cb5e94baf4 100644 --- a/Userland/Utilities/dmesg.cpp +++ b/Userland/Utilities/dmesg.cpp @@ -15,7 +15,7 @@ ErrorOr serenity_main(Main::Arguments) TRY(Core::System::unveil(nullptr, nullptr)); auto file = TRY(Core::Stream::File::open("/sys/kernel/dmesg"sv, Core::Stream::OpenMode::Read)); - auto buffer = TRY(file->read_all()); + auto buffer = TRY(file->read_until_eof()); out("{}", StringView { buffer }); return 0; } -- cgit v1.2.3