summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-30 19:25:04 +0100
committerLinus Groh <mail@linusgroh.de>2021-05-31 17:44:01 +0100
commita6248101e2fea4e2cdb73fac7158ad1e549eff16 (patch)
tree48bfe634e5593e3f6499172fc2a08f3373efffc4 /Userland/Applications
parent8625f089bfc070c6cef127738c391d7ef674af5a (diff)
downloadserenity-a6248101e2fea4e2cdb73fac7158ad1e549eff16.zip
SpaceAnalyzer: Replace fprintf(stderr) with warnln()
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/SpaceAnalyzer/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Applications/SpaceAnalyzer/main.cpp b/Userland/Applications/SpaceAnalyzer/main.cpp
index e58324d462..c56e0a12a1 100644
--- a/Userland/Applications/SpaceAnalyzer/main.cpp
+++ b/Userland/Applications/SpaceAnalyzer/main.cpp
@@ -75,13 +75,13 @@ struct MountInfo {
static void fill_mounts(Vector<MountInfo>& output)
{
// Output info about currently mounted filesystems.
- auto df = Core::File::construct("/proc/df");
- if (!df->open(Core::OpenMode::ReadOnly)) {
- fprintf(stderr, "Failed to open /proc/df: %s\n", df->error_string());
+ auto file = Core::File::construct("/proc/df");
+ if (!file->open(Core::OpenMode::ReadOnly)) {
+ warnln("Failed to open {}: {}", file->name(), file->error_string());
return;
}
- auto content = df->read_all();
+ auto content = file->read_all();
auto json = JsonValue::from_string(content);
VERIFY(json.has_value());