summaryrefslogtreecommitdiff
path: root/stage3
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2024-01-09 22:04:13 +0100
committerLizzy Fleckenstein <lizzy@vlhl.dev>2024-01-09 22:04:13 +0100
commit8872571a1b9ef6045174cb137ee5999256aa4d24 (patch)
tree733af57e669eef94df8aebf46f57d5c4444edd89 /stage3
parent0d0f738b3adc40de827ada9083404e9f9e065e2b (diff)
downloadcuddles-8872571a1b9ef6045174cb137ee5999256aa4d24.tar.xz
ls: fix unit printing
Diffstat (limited to 'stage3')
-rw-r--r--stage3/shell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stage3/shell.c b/stage3/shell.c
index 7930130..cf628ab 100644
--- a/stage3/shell.c
+++ b/stage3/shell.c
@@ -191,7 +191,7 @@ static void print_bytes(usize bytes)
if (bytes >= unit || unit == 1) {
print_num_pad(bytes/unit, 10, 3, ' ');
print_char('.');
- print_dec((bytes%unit)/100);
+ print_dec((bytes%unit)*10/unit);
print_char(' ');
print_char(fmt[LEN(fmt)-1-i]);
print_char('B');
@@ -227,7 +227,7 @@ static void cmd_ls(str arg)
kfree(d.data);
}
-void cmd_shutdown(str arg)
+static void cmd_shutdown(str arg)
{
(void) arg;
@@ -236,7 +236,7 @@ void cmd_shutdown(str arg)
outw(0x604, 0x2000);
}
-void cmd_cheese(str arg)
+static void cmd_cheese(str arg)
{
(void) arg;
cheese_demo();