summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-22 15:52:45 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-22 15:53:52 +0200
commit1277d583ef32c8931dc51635a4b6cd7a96f737ed (patch)
treea0b94b8691099519e948b479381bc554e1f6dabc /Kernel/FileSystem
parent5980007e44698071fe71a7e412785b8d04471127 (diff)
downloadserenity-1277d583ef32c8931dc51635a4b6cd7a96f737ed.zip
printf: Oops, '-' is the left padding modifier, not ' '.
It's kinda funny how I can make a mistake like this in Serenity and then get so used to it by spending lots of time using this API that I start to believe that this is how printf() always worked..
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r--Kernel/FileSystem/ProcFS.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/FileSystem/ProcFS.cpp b/Kernel/FileSystem/ProcFS.cpp
index 06f6cb3f1d..fc712e9e99 100644
--- a/Kernel/FileSystem/ProcFS.cpp
+++ b/Kernel/FileSystem/ProcFS.cpp
@@ -196,7 +196,7 @@ ByteBuffer procfs$pid_fds(InodeIdentifier identifier)
auto* description = process.file_description(i);
if (!description)
continue;
- builder.appendf("% 3u %s\n", i, description->absolute_path().characters());
+ builder.appendf("%-3u %s\n", i, description->absolute_path().characters());
}
return builder.to_byte_buffer();
}
@@ -228,7 +228,7 @@ ByteBuffer procfs$pid_vm(InodeIdentifier identifier)
flags_builder.append('R');
if (region->is_writable())
flags_builder.append('W');
- builder.appendf("%x -- %x %x %x % 4s %s\n",
+ builder.appendf("%x -- %x %x %x %-4s %s\n",
region->vaddr().get(),
region->vaddr().offset(region->size() - 1).get(),
region->size(),
@@ -544,7 +544,7 @@ ByteBuffer procfs$summary(InodeIdentifier)
StringBuilder builder;
builder.appendf("PID TPG PGP SID OWNER STATE PPID NSCHED FDS TTY NAME\n");
for (auto* process : processes) {
- builder.appendf("% 3u % 3u % 3u % 3u % 4u % 8s % 3u % 9u % 3u % 4s %s\n",
+ builder.appendf("%-3u %-3u %-3u %-3u %-4u %-8s %-3u %-9u %-3u %-4s %s\n",
process->pid(),
process->tty() ? process->tty()->pgid() : 0,
process->pgid(),