summaryrefslogtreecommitdiff
path: root/kernel/io.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* kernel: make kprintf print to a ring bufferDanny Holman2024-02-161-11/+23
| | | | | | | | The function kprintf should print to an internal ringbuffer instead of directly to the framebuffer. This reduces dependence on the existence of a framebuffer in the first place. Signed-off-by: Danny Holman <dholman@gymli.org>
* io: prefix a 'k' to print functionsDanny Holman2021-07-201-3/+3
| | | | Add a 'k' prefix to the kernel versions of the printf family.
* kernel: iterate over string with indexDanny Holman2021-01-201-6/+6
| | | | | | | | Iterate over a formatted string with an index and strlen instead of using a non-const pointer. The latter method may result in unsafe memory conditions. Signed-off-by: Danny Holman <dholman@gymli.xyz>
* kernel: implement a basic printf functionDanny Holman2021-01-171-0/+72
Implement a basic printf function using primitives from the TTY library. Signed-off-by: Danny Holman <dholman@gymli.xyz>