summaryrefslogtreecommitdiff
path: root/Kernel/kprintf.cpp
diff options
context:
space:
mode:
authorMax Wipfli <mail@maxwipfli.ch>2021-06-23 17:51:30 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-24 10:29:09 +0200
commit67067904f53c06d6808febabc7f3425dab929729 (patch)
treeae6166d247d770a270649d98a899ba4136b04bda /Kernel/kprintf.cpp
parent441d6dcdf921bc9bae37411e4006c1decf85f552 (diff)
downloadserenity-67067904f53c06d6808febabc7f3425dab929729.zip
Kernel: Add dbgputch() to kstdio.h
This adds a dbgputch() alongside dbgputstr() in kstdio.h. The function already existed as the static function debugger_out(). It has now been exposed to users of kstdio.h.
Diffstat (limited to 'Kernel/kprintf.cpp')
-rw-r--r--Kernel/kprintf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/kprintf.cpp b/Kernel/kprintf.cpp
index 96a4345552..f0b1d7f12c 100644
--- a/Kernel/kprintf.cpp
+++ b/Kernel/kprintf.cpp
@@ -145,7 +145,7 @@ int snprintf(char* buffer, size_t size, const char* fmt, ...)
return ret;
}
-static void debugger_out(char ch)
+extern "C" void dbgputch(char ch)
{
if (serial_debug)
serial_putch(ch);
@@ -158,7 +158,7 @@ extern "C" void dbgputstr(const char* characters, size_t length)
return;
ScopedSpinLock lock(s_log_lock);
for (size_t i = 0; i < length; ++i)
- debugger_out(characters[i]);
+ dbgputch(characters[i]);
}
extern "C" void kernelputstr(const char* characters, size_t length)