From ecbcb2509f4b811bce0a56e07de9737d14815251 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Tue, 24 Nov 2020 15:15:11 -0700 Subject: Add better logging capabilities, including the ability to panic. --- include/kern/log.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/kern/log.h') diff --git a/include/kern/log.h b/include/kern/log.h index 5e49def..e1e4088 100644 --- a/include/kern/log.h +++ b/include/kern/log.h @@ -1,6 +1,8 @@ #ifndef LOG_H_ #define LOG_H_ +#include + /* * Defines logging capabilities. This logging unit will enable logging on * the systems main USART output. @@ -9,4 +11,13 @@ /** Similar to fprintf, but with a stripped-down format-string DSL. */ void klogf(const char* fmt, ...); +/** Like klogf, but with a va_list argument. */ +void kvlogf(const char* fmt, va_list args); + +/** Log the following message as an error. */ +void kerr_logf(const char* fmt, ...); + +/** Like klogf, but with a va_list argument. */ +void kerr_vlogf(const char* fmt, va_list args); + #endif -- cgit