diff options
Diffstat (limited to 'src/kernel/lib/stdio')
-rw-r--r-- | src/kernel/lib/stdio/debug.c | 4 | ||||
-rw-r--r-- | src/kernel/lib/stdio/vprintf.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/kernel/lib/stdio/debug.c b/src/kernel/lib/stdio/debug.c index 74eb594..3acb987 100644 --- a/src/kernel/lib/stdio/debug.c +++ b/src/kernel/lib/stdio/debug.c @@ -33,12 +33,12 @@ void serial_vprintf(const char *fmt, va_list args) } else if (buff == 'x') { char *p = htoa((u32)va_arg(args, int)); serial_print(p); - kfree(p); + free(p); readyToFormat = 0; } else if (buff == 'd') { char *p = itoa(va_arg(args, int)); serial_print(p); - kfree(p); + free(p); readyToFormat = 0; } else if (buff == 'c') { serial_put((char)va_arg(args, int)); diff --git a/src/kernel/lib/stdio/vprintf.c b/src/kernel/lib/stdio/vprintf.c index 37723b2..4c0c432 100644 --- a/src/kernel/lib/stdio/vprintf.c +++ b/src/kernel/lib/stdio/vprintf.c @@ -33,12 +33,12 @@ void vprintf(const char *fmt, va_list args) } else if (buff == 'x') { char *p = htoa((u32)va_arg(args, int)); _puts(p); - kfree(p); + free(p); readyToFormat = 0; } else if (buff == 'd') { char *p = itoa(va_arg(args, int)); _puts(p); - kfree(p); + free(p); readyToFormat = 0; } else if (buff == 'c') { putch((char)va_arg(args, int)); |