mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
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..
This commit is contained in:
parent
5980007e44
commit
1277d583ef
5 changed files with 17 additions and 17 deletions
|
@ -88,7 +88,7 @@ int main(int, char**)
|
|||
auto sum_diff = current.sum_nsched - prev.sum_nsched;
|
||||
|
||||
printf("\033[3J\033[H\033[2J");
|
||||
printf("\033[47;30m%6s %3s % 8s % 8s %6s %6s %4s %s\033[K\033[0m\n",
|
||||
printf("\033[47;30m%6s %3s %-8s %-8s %6s %6s %4s %s\033[K\033[0m\n",
|
||||
"PID",
|
||||
"PRI",
|
||||
"USER",
|
||||
|
@ -118,7 +118,7 @@ int main(int, char**)
|
|||
});
|
||||
|
||||
for (auto* process : processes) {
|
||||
printf("%6d %c % 8s % 8s %6u %6u %2u.%1u %s\n",
|
||||
printf("%6d %c %-8s %-8s %6u %6u %2u.%1u %s\n",
|
||||
process->pid,
|
||||
process->priority[0],
|
||||
process->user.characters(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue