From 4bd8a81cca44285402af2a5e26db267c44abe4f4 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 9 Dec 2024 23:25:02 +0100 Subject: kernel: Add a way to parse numbers from C strings After making this change I am now actually doubting if using C strings is a good idea and maybe it should just always just the string view library that userland makes use of. But old code and the upcoming commits rely upon this so it is a change my future less lazy self will do. --- kernel/fs/devfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/fs') diff --git a/kernel/fs/devfs.c b/kernel/fs/devfs.c index 833aab5..8e09b7c 100644 --- a/kernel/fs/devfs.c +++ b/kernel/fs/devfs.c @@ -64,7 +64,7 @@ int stdout_write(u8 *buffer, u64 offset, u64 len, vfs_fd_t *fd) { int rc = len; for (; len--;) { - putc(*buffer++); + write_serial(*buffer++); } return rc; } -- cgit v1.2.3