diff --git a/sources/kernel/io/out.zig b/sources/kernel/io/out.zig index 9ed1e0b..912b758 100644 --- a/sources/kernel/io/out.zig +++ b/sources/kernel/io/out.zig @@ -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), diff --git a/sources/kernel/kmain.zig b/sources/kernel/kmain.zig index ba66f1c..84a5c10 100644 --- a/sources/kernel/kmain.zig +++ b/sources/kernel/kmain.zig @@ -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(); }