summaryrefslogtreecommitdiff
path: root/src/kernel/log.c
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-02-16 20:38:53 -0500
committerBenji Dial <benji6283@gmail.com>2021-02-16 20:38:53 -0500
commit47513bd32c256c4f35e3a8ced7d9fd7e15903530 (patch)
treecafdf75d52a954814726e07445063c41bb6599f9 /src/kernel/log.c
parentbd7facc4b5f53481dc85a15ba123361b2758655b (diff)
downloadportland-os-47513bd32c256c4f35e3a8ced7d9fd7e15903530.tar.gz
terminal application with ipc, shift+pause state dumper, hello world for terminal, meminfo popup program
Diffstat (limited to 'src/kernel/log.c')
-rw-r--r--src/kernel/log.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kernel/log.c b/src/kernel/log.c
index 8ef2baf..6bad1cc 100644
--- a/src/kernel/log.c
+++ b/src/kernel/log.c
@@ -14,6 +14,7 @@ void init_log() {
static const char *const log_prefixes[] = {
" [USER] ",
" [INFO] ",
+ " [DUMP] ",
" [WARN] ",
"[ERROR] ",
"[PANIC] ",
@@ -42,6 +43,10 @@ void logf(enum log_level level, const char *format, ...) {
case '%':
logch('%');
break;
+ case 'c':;
+ const char c = (char)va_arg(args, uint32_t);
+ logch(c);
+ break;
case 's':;
const char *s = va_arg(args, const char *);
while (*s)