diff options
author | Anton Kling <anton@kling.gg> | 2024-12-09 23:25:02 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-12-09 23:27:48 +0100 |
commit | 4bd8a81cca44285402af2a5e26db267c44abe4f4 (patch) | |
tree | 5ca227dacc0c863c031789ae51469400b221dfb8 /kernel/fs/devfs.c | |
parent | 3bb66753076f4037883b7c71ce2fb8e78f8b1194 (diff) |
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.
Diffstat (limited to 'kernel/fs/devfs.c')
-rw-r--r-- | kernel/fs/devfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |