Skip to content

Commit

Permalink
yes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kbz-8 committed Jul 19, 2024
1 parent 880834c commit 0d7ede9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions sources/kernel/io/out.zig
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ pub fn kprintf(fmt: [*:0]const u8, ...) callconv(.C) c_int
vga.putChar(@cVaArg(&ap, u8));
number_char_printed += 1;
},
ArgTypes.Int =>
{
const j: i32 = @cVaArg(&ap, i32);
number_char_printed += putNb(j);
},
ArgTypes.Int => number_char_printed += putNb(@cVaArg(&ap, i32)),
ArgTypes.Float => _ = @cVaArg(&ap, f32),
ArgTypes.String => _ = @cVaArg(&ap, *u8),
ArgTypes.Pointer => _ = @cVaArg(&ap, *u32),
Expand Down
2 changes: 1 addition & 1 deletion sources/kernel/kmain.zig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export fn kmain() void
drivers.initDrivers();
logs.klogln("Welcome to RatiOS !");
const caca: i32 = 1048;
_ = console.kprintf("caca ;{i};, ;{f};, ;{s};\n", caca, @as(f32, 1.6), "gros caca boudin");
_ = console.kprintf("caca ;{i};, ;{f};, ;{s};\n", caca);
_ = console.putNb(caca);
drivers.shutdownDrivers();
}

0 comments on commit 0d7ede9

Please sign in to comment.